Skip to content

[Feature Request]  #21316

Open
Open

Description

Describe the feature request

Can onnxruntime support directly loading *.engine or *.trt to initialize the session when using TensorRT EP?

Describe scenario use case

Currently using TensorRT EP, in order to ensure the initialization speed, the *.engine is written to the hard disk when using the cache. In my production environment, I want *.engine to be encrypted. And they can be directly loaded in the following way.
//Decrypt model to byte
byte=Decryptor.read("./encrypted_model.engine");

//Initialize to session
session = Ort::Session(env, byte.data(), byte.size(), session_options);

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

Metadata

Assignees

Labels

ep:TensorRTissues related to TensorRT execution providerfeature 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