Skip to content

Commit

Permalink
Ignore empty domain name strings
Browse files Browse the repository at this point in the history
  • Loading branch information
fdwr committed Jun 25, 2024
1 parent 728e8a1 commit dd26869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Onnx2Text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2216,7 +2216,7 @@ void DisplayModelInformation(onnx::ModelProto const& model)
{
// Prepend domain if present. e.g. "com.microsoft.MultiheadAttention"
std::string operatorType;
if (node.has_domain())
if (node.has_domain() && !node.domain().empty())
{
operatorType.append_range(node.domain());
operatorType.push_back('.');
Expand Down

0 comments on commit dd26869

Please sign in to comment.