Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@
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");
for (auto dim : t_proto_p->dims()) {

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 CUDA CI Pipeline

you cannot dereference an operand of type 'int'

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 CUDA CI Pipeline

'<end>$L0': cannot be used before it is initialized

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 CUDA CI Pipeline

'<begin>$L0': cannot be used before it is initialized

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 CUDA CI Pipeline

'end': no matching overloaded function found

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 CUDA CI Pipeline

'begin': no matching overloaded function found

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 TensorRT CI Pipeline

you cannot dereference an operand of type 'int'

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 TensorRT CI Pipeline

'<end>$L0': cannot be used before it is initialized

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 TensorRT CI Pipeline

'<begin>$L0': cannot be used before it is initialized

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 TensorRT CI Pipeline

'end': no matching overloaded function found

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 TensorRT CI Pipeline

'begin': no matching overloaded function found
ORT_ENFORCE(dim == 1, "The value attribute of ConstantOfShape must be a single-element tensor");
}
SetValueFromTensorProto(*t_proto_p);
} else {
float f_value = 0.f;
Expand Down
Loading