Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TF] NodeDefs without an op name are invalid, return error on import
PiperOrigin-RevId: 453711926
- Loading branch information
1 parent
7709a78
commit a0f0b9a
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
tensorflow/core/ir/importexport/tests/graphdef_to_mlir/invalid_op_name.pbtxt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# RUN: not tfg-translate -graphdef-to-mlir %s 2>&1 | FileCheck %s | ||
|
||
# CHECK: Node has an empty op name | ||
|
||
library { | ||
function { | ||
signature { | ||
name: "\\344\\264\\264" | ||
description: "value" | ||
is_distributed_communication: true | ||
} | ||
node_def { | ||
input: "|" | ||
} | ||
control_ret { | ||
key: "" | ||
value: "" | ||
} | ||
} | ||
} |