Skip to content

ONNX reshape error when running inference with GLiNER-PII-Edge v1.0 #299

@Ani2019

Description

@Ani2019

Hello,

I’m trying to use GLiNER-PII-Edge v1.0 model from Hugging Face https://huggingface.co/knowledgator/gliner-pii-edge-v1.0/tree/main ,(inference with onnx file) with onnxruntime, but I’m encountering a reshape error. I would appreciate your help.
This is the error: onnxruntime.capi.onnxruntime_pybind11_state.RuntimeException: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Non-zero status code returned while running Reshape node. Name:'/core/scorer/Reshape_1' Status Message: /onnxruntime_src/onnxruntime/core/providers/cpu/tensor/reshape_helper.h:45 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,1536}, requested shape:{1,1,1536,2,768}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions