We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d34d23 commit d2663ddCopy full SHA for d2663dd
onnxruntime/src/tensor.rs
@@ -183,7 +183,7 @@ impl<T: Utf8Data> TypeToTensorElementDataType for T {
183
}
184
185
/// Trait used to map onnxruntime types to Rust types
186
-pub trait TensorDataToType: Sized + fmt::Debug {
+pub trait TensorDataToType: Sized + fmt::Debug + Clone {
187
/// The tensor element type that this type can extract from
188
fn tensor_element_data_type() -> TensorElementDataType;
189
0 commit comments