Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scalars have caused some issues with onnx import #2699

Open
loloxwg opened this issue Jan 15, 2025 · 0 comments
Open

Scalars have caused some issues with onnx import #2699

loloxwg opened this issue Jan 15, 2025 · 0 comments
Labels
bug Something isn't working onnx

Comments

@loloxwg
Copy link

loloxwg commented Jan 15, 2025

Describe the bug
Scalars have caused some issues with onnx import..in this case it looks like the constant node import does not correctly handle them.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://huggingface.co/AndrewOgn/resnet_onnx/tree/main down the onnx file
  2. Run code
    // Generate the model code from the ONNX file.

    // If not embedded-model, then model is loaded from the file system (default).
    ModelGen::new()
        .input("src/model/resnet_model.onnx")
        .out_dir("model/")
        .development(true)
        .run_from_script();
    
}

Expected behavior

Generage a model.rs file

Screenshots

image

Desktop (please complete the following information):

  • OS: Mac OS m1
  • Browser Chrome
  • Version da8de56

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

@laggui laggui added bug Something isn't working onnx labels Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working onnx
Projects
None yet
Development

No branches or pull requests

2 participants