Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@
auto* t_proto_p = t_proto.get();
#endif
if (info.GetAttr<ONNX_NAMESPACE::TensorProto>("value", t_proto_p).IsOK()) {
ORT_ENFORCE(t_proto_p->dims_size() == 1, "Must have a single dimension");
ORT_ENFORCE(t_proto_p->dims()[0] == 1, "Must have a single dimension of 1");
ORT_ENFORCE(utils::GetTensorShapeFromTensorProto(t_proto_p).Size(), "The value attribute of ConstantOfShape must be a single-element tensor");

Check failure on line 81 in onnxruntime/core/providers/cpu/generator/constant_of_shape_base.h

View workflow job for this annotation

GitHub Actions / Windows GPU DML CI Pipeline

'onnxruntime::TensorShape onnxruntime::utils::GetTensorShapeFromTensorProto(const onnx::TensorProto &)': cannot convert argument 1 from 'onnx::TensorProto *' to 'const onnx::TensorProto &'

Check failure on line 81 in onnxruntime/core/providers/cpu/generator/constant_of_shape_base.h

View workflow job for this annotation

GitHub Actions / webgpu_minimal_build_edge_build_x64_RelWithDebInfo

'onnxruntime::TensorShape onnxruntime::utils::GetTensorShapeFromTensorProto(const onnx::TensorProto &)': cannot convert argument 1 from 'onnx::TensorProto *' to 'const onnx::TensorProto &'

Check failure on line 81 in onnxruntime/core/providers/cpu/generator/constant_of_shape_base.h

View workflow job for this annotation

GitHub Actions / webgpu_build_x64_RelWithDebInfo (novcpkg, dynamic)

'onnxruntime::TensorShape onnxruntime::utils::GetTensorShapeFromTensorProto(const onnx::TensorProto &)': cannot convert argument 1 from 'onnx::TensorProto *' to 'const onnx::TensorProto &'

Check failure on line 81 in onnxruntime/core/providers/cpu/generator/constant_of_shape_base.h

View workflow job for this annotation

GitHub Actions / webgpu_build_x64_RelWithDebInfo (novcpkg, static)

'onnxruntime::TensorShape onnxruntime::utils::GetTensorShapeFromTensorProto(const onnx::TensorProto &)': cannot convert argument 1 from 'onnx::TensorProto *' to 'const onnx::TensorProto &'

Check failure on line 81 in onnxruntime/core/providers/cpu/generator/constant_of_shape_base.h

View workflow job for this annotation

GitHub Actions / webgpu_build_x64_RelWithDebInfo (vcpkg, dynamic)

'onnxruntime::TensorShape onnxruntime::utils::GetTensorShapeFromTensorProto(const onnx::TensorProto &)': cannot convert argument 1 from 'onnx::TensorProto *' to 'const onnx::TensorProto &'

Check failure on line 81 in onnxruntime/core/providers/cpu/generator/constant_of_shape_base.h

View workflow job for this annotation

GitHub Actions / webgpu_build_x64_RelWithDebInfo (vcpkg, static)

'onnxruntime::TensorShape onnxruntime::utils::GetTensorShapeFromTensorProto(const onnx::TensorProto &)': cannot convert argument 1 from 'onnx::TensorProto *' to 'const onnx::TensorProto &'
SetValueFromTensorProto(*t_proto_p);
} else {
float f_value = 0.f;
Expand Down
Loading