Skip to content

Commit

Permalink
Fix typo in the TensorShape (microsoft#17813)
Browse files Browse the repository at this point in the history
The function name in the log should be SizeToDimension
  • Loading branch information
deoksangkim authored Dec 2, 2023
1 parent 92ee664 commit 2f8b86b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxruntime/core/framework/tensor_shape.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2f8b86b

Please sign in to comment.