mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-28 20:11:22 +00:00
Fix typo in the TensorShape (#17813)
The function name in the log should be SizeToDimension
This commit is contained in:
parent
92ee664f64
commit
2f8b86b939
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue