pub trait DeviceTensorExt {
// Required methods
fn to_device_tensor(&self) -> TractResult<&DeviceTensor>;
fn as_device_tensor(&self) -> Option<&DeviceTensor>;
}Required Methods§
fn to_device_tensor(&self) -> TractResult<&DeviceTensor>
fn as_device_tensor(&self) -> Option<&DeviceTensor>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".