From 2f8b86b93906d0dd0549aca22798c660aa10db91 Mon Sep 17 00:00:00 2001 From: Deoksang Kim Date: Sat, 2 Dec 2023 09:48:55 +0900 Subject: [PATCH] Fix typo in the TensorShape (#17813) The function name in the log should be SizeToDimension --- onnxruntime/core/framework/tensor_shape.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/core/framework/tensor_shape.cc b/onnxruntime/core/framework/tensor_shape.cc index 521f4062c1ff6..399dc1a2a4e69 100644 --- a/onnxruntime/core/framework/tensor_shape.cc +++ b/onnxruntime/core/framework/tensor_shape.cc @@ -63,7 +63,7 @@ int64_t TensorShape::Size() const { int64_t TensorShape::SizeToDimension(size_t dimension) const { const size_t num_dims = values_.size(); ORT_ENFORCE(dimension <= num_dims, - "Invalid dimension of ", dimension, " for SizeFromDimension. Tensor has ", + "Invalid dimension of ", dimension, " for SizeToDimension. Tensor has ", num_dims, " dimensions."); int64_t size = SizeHelper(0, dimension);