Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.
This repository was archived by the owner on May 7, 2025. It is now read-only.

Error: Could not infer shapes: unsupported: Reshape with shape containing a -1 element #208

Description

@BinaryWarlock

Describe the bug
Error: Could not infer shapes: unsupported: Reshape with shape containing a -1 element

To Reproduce
Using onnx-clip model which you can grab at https://lakera-clip.s3.eu-west-1.amazonaws.com/clip_image_model_vitb32.onnx (about 336 MiB)
$ nnx prepare -i data/clip_image_model_vitb32.onnx data/clip_image_model_vitb32.onnx.prepared --set image_batch_size=1

Expected behavior
It to prepare the model

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions