Skip to content

CoreML Export Error: export failure: 'torch._C.Node' object has no attribute 'ival' #2961

@samygarg

Description

@samygarg

🐛 Bug

I am trying to export the default trained YOLOv5 Model as given here to CoreML but getting an error on both Colab as well as my laptop:

CoreML: export failure: 'torch._C.Node' object has no attribute 'ival'

Screenshot 2021-04-28 at 13 55 39

To Reproduce (REQUIRED)

Follow the steps mentioned here.

Expected behavior

Export the CoreML model successfully.

Environment

Colab and Macbook Pro 13 inch 2019.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions