diff --git a/onnxruntime/core/providers/dnnl/subgraph/dnnl_squeeze.cc b/onnxruntime/core/providers/dnnl/subgraph/dnnl_squeeze.cc index db66cb3a39..f9c2fe9b6b 100644 --- a/onnxruntime/core/providers/dnnl/subgraph/dnnl_squeeze.cc +++ b/onnxruntime/core/providers/dnnl/subgraph/dnnl_squeeze.cc @@ -44,7 +44,7 @@ void DnnlSqueeze::CreatePrimitive(DnnlSubgraphPrimitive& sp, DnnlNode& node) { if ((j < axes_data.size() && axes_data[j] == static_cast(i)) || (axes_data.size() == 0 && data_dims[i] == 1)) { ORT_ENFORCE(data_dims[i] == 1, "Dimension of input ", i, " must be 1 instead of ", data_dims[i], - ". shape=", data_dims); + ". shape=", TensorShape(data_dims)); ++j; continue; }