-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TensorRT] Support Multiple EP Context #23294
base: main
Are you sure you want to change the base?
Conversation
You should modify tensorrt_execution_provider.cc line # 3853 to 3856 // dump ep context model
if (dump_ep_context_model_ && ep_context_embed_mode_) {
UpdateCtxNodeModelEngineContext(model_proto_.get(), reinterpret_cast<char*>(serialized_engine->data()), serialized_engine->size());
DumpCtxModel(model_proto_.get(), ctx_model_path_);
} The code above handles the case when the graph has dynamic shape input(s) and the engine is being updated during inference. |
I added a warning to prompt user generate ep context model. Handling this case will require changes to all EP context design. We have confirmed this is a lower priority use case |
Description
Supported scenarios:
Unsupported scenarios:
Supporting this will require a call up from execution provider to CreateEpContextModel in graph_partitioner.cc during run time. It will require significant changes in the existing infrastructure.
Motivation and Context