Giter VIP home page Giter VIP logo

Comments (6)

gramalingam avatar gramalingam commented on September 26, 2024

Hi, I don't understand the issue. The onnxruntime error message seems a valid error: you cannot reshape a zero-sized tensor into a tensor of size 1. So, it looks like an error in the model (or model-conversion).

from onnx.

Priyanshu88 avatar Priyanshu88 commented on September 26, 2024

@gramalingam I have edited the issue of input shape and requested shape.

When keeping the batch size as 32, am getting below failure.
onnxruntime.capi.onnxruntime_pybind11_state.RuntimeException: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Non-zero status code returned while running Reshape node. Name:'/Reshape_16_output_0_ReduceMax_Reshape' Status Message: /onnxruntime_src/onnxruntime/core/providers/cpu/tensor/reshape_helper.h:44 onnxruntime::ReshapeHelper::ReshapeHelper(const onnxruntime::TensorShape&, onnxruntime::TensorShapeVector&, bool) input_shape_size == size was false. The input tensor cannot be reshaped to the requested shape. Input shape:{0,1}, requested shape:{1}
When keeping the batch size as 1, am getting below failure.
[ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Non-zero status code returned while running Reshape node. Name:'/Tile_output_0_ReduceMax_Reshape' Status Message: /onnxruntime_src/onnxruntime/core/providers/cpu/tensor/reshape_helper.h:44 onnxruntime::ReshapeHelper::ReshapeHelper(const onnxruntime::TensorShape&, onnxruntime::TensorShapeVector&, bool) input_shape_size == size was false. The input tensor cannot be reshaped to the requested shape. Input shape:{1,0,1}, requested shape:{1}

from onnx.

gramalingam avatar gramalingam commented on September 26, 2024

@Priyanshu88 : You could ask in the onnxruntime repo (https://github.com/microsoft/onnxruntime/issues). It would help if you provide the onnx model and input to reproduce the error. I still think the error looks like a valid error message, so it could be an error in the model/exporter ... and maybe asking in mmlab would be more appropriate.

from onnx.

Priyanshu88 avatar Priyanshu88 commented on September 26, 2024

But this problem is coming up for the conversion of model from .pth to .onnx through the onnx_config i mentioned earlier. I am not yet on training or inference generation, i hope this to be the right place to ask.

from onnx.

justinchuby avatar justinchuby commented on September 26, 2024

For open-mmlab generated models, it may be a good idea to consult with developers of https://github.com/open-mmlab.

from onnx.

gramalingam avatar gramalingam commented on September 26, 2024

But this problem is coming up for the conversion of model from .pth to .onnx through the onnx_config i mentioned earlier

The onnx config you mention seems to be a feature of open-mmlab, not ONNX itself.

from onnx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.