Skip to content

Question about sequence/map input onnx type from model #1747

Description

@qw2208
  1. Is there a way to get the non-tensor types from the onnx model?
    For example, if the model input is of type: std::vector<std::map<int64_t, float>>, I could get the input type of ONNX_TYPE_SEQUENCE by running session->GetInputTypeInfo(i).GetONNXType();
    However, I'm confused how I could continue to get the type of the map while creating Ort::Value using the CXX api?
  2. Another question is when loading the Bert model from Bert_model, one of the input shapes is [-1, 256] (Actually this model converted from Tensorflow and the inputs shape all starts with -1). Is the negative index supported when calling session run function? I'm getting the error of out of data bound.
    image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestrequest for unsupported feature or enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions