Skip to content

Commit

Permalink
fix error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gedoensmax committed Oct 12, 2023
1 parent d0daf4e commit 1cd4672
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onnxruntime/core/providers/cpu/nn/instance_norm_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class InstanceNormHelper {
if (scale->Shape().Size() != in_channels) {
std::ostringstream ostr;
ostr << "Mismatch between input data and scale: size of scale != input channel count " << scale->Shape().Size()
<< " vs. " << input->Shape().GetDims()[1];
<< " vs. " << in_channels;
return common::Status(common::ONNXRUNTIME, common::INVALID_ARGUMENT, ostr.str());
}

Expand All @@ -47,7 +47,7 @@ class InstanceNormHelper {
if (B->Shape().Size() != in_channels) {
std::ostringstream ostr;
ostr << "Mismatch between input data and B: size of B != input channel count " << B->Shape().Size() << " vs. "
<< input->Shape().GetDims()[1];
<< in_channels;
return common::Status(common::ONNXRUNTIME, common::INVALID_ARGUMENT, ostr.str());
}

Expand Down

0 comments on commit 1cd4672

Please sign in to comment.