|
|
|
@@ -442,7 +442,7 @@ OpUtils::GetShapeDataFromConstTensor(const ConstGeTensorPtr &tensor, DataType ty |
|
|
|
|
|
|
|
// If the tensor data is a vector, the shape dimension must be 1 |
|
|
|
if (tensor->GetTensorDesc().GetShape().GetDims().size() > 1) { |
|
|
|
GELOGE(PARAM_INVALID, "The dimension of the input tensor shape cannot be more than 1, it is %zu", |
|
|
|
GELOGE(PARAM_INVALID, "The dimension of the input tensor shape cannot be more than 1, it is %zu.", |
|
|
|
tensor->GetTensorDesc().GetShape().GetDims().size()); |
|
|
|
return PARAM_INVALID; |
|
|
|
} |
|
|
|
|