Skip to content

Problem of implementation #3843

Open
Open
@w-shuw

Description

@w-shuw

Hi, thanks for your great work!
There are something wrong when I deploy model with C++. When i use torch.jit.trace to export the model, the problem was arised like below:
Could not export Python function call 'xxx'. Remove calls to Python functions before export. Did you forget to add @script or @script_method annotation? If this is a nn.ModuleList, add it to __constants__:
If you learn about it, could you help me with it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions