Skip to content

Commit d2663dd

Browse files
Add Clone back in to make it possible for users to clone output tensors
1 parent 0d34d23 commit d2663dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnxruntime/src/tensor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ impl<T: Utf8Data> TypeToTensorElementDataType for T {
183183
}
184184

185185
/// Trait used to map onnxruntime types to Rust types
186-
pub trait TensorDataToType: Sized + fmt::Debug {
186+
pub trait TensorDataToType: Sized + fmt::Debug + Clone {
187187
/// The tensor element type that this type can extract from
188188
fn tensor_element_data_type() -> TensorElementDataType;
189189

0 commit comments

Comments
 (0)