Skip to content

Commit dd26869

Browse files
committed
Ignore empty domain name strings
1 parent 728e8a1 commit dd26869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Onnx2Text.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2216,7 +2216,7 @@ void DisplayModelInformation(onnx::ModelProto const& model)
22162216
{
22172217
// Prepend domain if present. e.g. "com.microsoft.MultiheadAttention"
22182218
std::string operatorType;
2219-
if (node.has_domain())
2219+
if (node.has_domain() && !node.domain().empty())
22202220
{
22212221
operatorType.append_range(node.domain());
22222222
operatorType.push_back('.');

0 commit comments

Comments
 (0)