Skip to content

Commit fc3d1a1

Browse files
committed
Session::validate_input_shapes() doesn't need &mut
1 parent 2f57def commit fc3d1a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnxruntime/src/session.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ impl Session {
487487
// Tensor::from_array(self, array)
488488
// }
489489

490-
fn validate_input_shapes<TIn, D>(&mut self, input_arrays: &[Array<TIn, D>]) -> Result<()>
490+
pub(crate) fn validate_input_shapes<TIn, D>(&self, input_arrays: &[Array<TIn, D>]) -> Result<()>
491491
where
492492
TIn: TypeToTensorElementDataType + Debug + Clone,
493493
D: ndarray::Dimension,

0 commit comments

Comments
 (0)