未验证 提交 82ebe9b9 编写于 作者: X xingmingyyj 提交者: GitHub

print dialect name before type (#55784)

上级 5296e91a
...@@ -111,6 +111,8 @@ void PaddleDialect::initialize() { ...@@ -111,6 +111,8 @@ void PaddleDialect::initialize() {
} }
void PaddleDialect::PrintType(ir::Type type, std::ostream &os) const { void PaddleDialect::PrintType(ir::Type type, std::ostream &os) const {
os << type.dialect().name();
os << '.';
if (auto tensor_type = type.dyn_cast<DenseTensorType>()) { if (auto tensor_type = type.dyn_cast<DenseTensorType>()) {
os << "tensor<"; os << "tensor<";
for (auto d : phi::vectorize(tensor_type.dims())) { for (auto d : phi::vectorize(tensor_type.dims())) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册