We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43bfc40 commit f05b24fCopy full SHA for f05b24f
mlir/lib/Bindings/Python/IRAttributes.cpp
@@ -708,7 +708,7 @@ class PyDenseElementsAttribute
708
llvm::raw_string_ostream os(message);
709
os << "Expected a static ShapedType for the shaped_type parameter: "
710
<< py::repr(py::cast(*explicitType));
711
- throw py::value_error(os.str());
+ throw py::value_error(message);
712
}
713
shapedType = *explicitType;
714
} else {
@@ -732,7 +732,7 @@ class PyDenseElementsAttribute
732
os << "All attributes must be of the same type and match "
733
<< "the type parameter: expected=" << py::repr(py::cast(shapedType))
734
<< ", but got=" << py::repr(py::cast(attrType));
735
736
737
738
0 commit comments