Skip to content

ApplyOnnxModel with model as byte stream instead of local file #6183

Description

@anat-gilenson

Is your feature request related to a problem? Please describe.
I wouldn't like to save files on my service's disk but providing a file name for an ONNX model is currently the only option when I need to load it. Instead, I would like to save the model in a remote source.

Describe the solution you'd like
I'd like to read the ONNX model from a remote source and pass it to ApplyOnnxModel as a byte stream/array instead of providing a local model file name. I see InferenceSession of OnnxRuntime is used for ONNX model loading and it provides a constructor which takes in a byte array as the model. Seems like this constructor could be used to achieve my need.

Metadata

Metadata

Assignees

Labels

P2Priority of the issue for triage purpose: Needs to be fixed at some point.enhancementNew feature or requestonnxExporting ONNX models or loading ONNX models

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions