mirror of
https://github.com/pykeio/ort
synced 2026-04-25 16:34:55 +02:00
feat: add with_bf16() to TensorRT backend (#555)
This commit is contained in:
committed by
GitHub
parent
bd731fdd0b
commit
c4d54b36c5
@@ -50,6 +50,12 @@ impl TensorRT {
|
||||
self
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn with_bf16(mut self, enable: bool) -> Self {
|
||||
self.options.set("trt_bf16_enable", if enable { "1" } else { "0" });
|
||||
self
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn with_int8(mut self, enable: bool) -> Self {
|
||||
self.options.set("trt_int8_enable", if enable { "1" } else { "0" });
|
||||
|
||||
Reference in New Issue
Block a user