Skip to content

Commit

Permalink
fix: trt context memory sharing (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
smallbraingames authored Nov 28, 2024
1 parent 7fa9734 commit 5d41c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/execution_providers/tensorrt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ impl TensorRTExecutionProvider {

#[must_use]
pub fn with_context_memory_sharing(mut self, enable: bool) -> Self {
self.options.set("trt_enable_context_memory_sharing", if enable { "1" } else { "0" });
self.options.set("trt_context_memory_sharing_enable", if enable { "1" } else { "0" });
self
}

Expand Down

0 comments on commit 5d41c96

Please sign in to comment.