Skip to content

error converting model to onnx #81

Description

@mrljwlm

I want to convert the tps_resnet_bilstm_attn model ot onnx format, however it failed because the onnx not suport the operator grid_sampler in models/bodies/rectificators/tps_stn.py

if i skip this operator, these two errors will occured:

RuntimeError: Failed to export an ONNX attribute 'onnx::Gather', since it's not constant, please try to make things (e.g., kernel size) static if possible

RuntimeError: Unsupported: ONNX export of operator adaptive pooling, since output_size is not constant.. Please open a bug to request ONNX export support for the missing operator.

anyone can give me some help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions