@@ -128,7 +128,8 @@ struct ExtractAttribute {
128
128
attr_value = &boost::get<T>(attr);
129
129
} catch (boost::bad_get& bad_get) {
130
130
PADDLE_THROW (" Cannot get attribute %s by type %s, its type is %s" ,
131
- attr_name_, typeid (T).name (), attr.type ().name ());
131
+ attr_name_, paddle::platform::demangle (typeid (T).name ()),
132
+ paddle::platform::demangle (attr.type ().name ()));
132
133
}
133
134
return attr_value;
134
135
}
@@ -160,7 +161,7 @@ struct ExtractAttribute<bool> {
160
161
attr_value = &boost::get<bool >(attr);
161
162
} catch (boost::bad_get& bad_get) {
162
163
PADDLE_THROW (" Cannot get attribute %s by type bool, its type is %s" ,
163
- attr_name_, attr.type ().name ());
164
+ attr_name_, paddle::platform::demangle ( attr.type ().name () ));
164
165
}
165
166
return attr_value;
166
167
}
@@ -186,7 +187,7 @@ struct ExtractAttribute<int64_t> {
186
187
attr_value = &boost::get<int64_t >(attr);
187
188
} catch (boost::bad_get& bad_get) {
188
189
PADDLE_THROW (" Cannot get attribute %s by type int64_t, its type is %s" ,
189
- attr_name_, attr.type ().name ());
190
+ attr_name_, paddle::platform::demangle ( attr.type ().name () ));
190
191
}
191
192
return attr_value;
192
193
}
0 commit comments