-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes a missing attribute in function implementation of CastLike (onn…
…x#5246) ### Description The function implementation of CastLike does not propagate the attribute *saturate*. This PR fixes it and make the changes in the reference implementation to check the function implementation is working. This PR fixes two issues: 1. function implementation of CastLike (19) 2. reference implementation working context dependent function By default, the reference implementation choose a kernel if there is one, even if the operator defines an implementation. The PR introduces a mechanism to force the use of the kernel and expand the operator by its function. It delays that when the function is context dependant. It is then done when the node is executed and its inputs known. --------- Signed-off-by: xadupre <[email protected]>
- Loading branch information
Showing
23 changed files
with
180 additions
and
25 deletions.
There are no files selected for viewing
Binary file modified
BIN
+17 Bytes
(110%)
onnx/backend/test/data/node/test_castlike_BFLOAT16_to_FLOAT_expanded/model.onnx
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(110%)
onnx/backend/test/data/node/test_castlike_DOUBLE_to_FLOAT16_expanded/model.onnx
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(110%)
onnx/backend/test/data/node/test_castlike_DOUBLE_to_FLOAT_expanded/model.onnx
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(110%)
onnx/backend/test/data/node/test_castlike_FLOAT16_to_DOUBLE_expanded/model.onnx
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(110%)
onnx/backend/test/data/node/test_castlike_FLOAT16_to_FLOAT_expanded/model.onnx
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(110%)
onnx/backend/test/data/node/test_castlike_FLOAT8E4M3FNUZ_to_FLOAT_expanded/model.onnx
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(110%)
onnx/backend/test/data/node/test_castlike_FLOAT8E4M3FN_to_FLOAT_expanded/model.onnx
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(110%)
onnx/backend/test/data/node/test_castlike_FLOAT8E5M2FNUZ_to_FLOAT_expanded/model.onnx
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(110%)
onnx/backend/test/data/node/test_castlike_FLOAT8E5M2_to_FLOAT_expanded/model.onnx
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(110%)
onnx/backend/test/data/node/test_castlike_FLOAT_to_BFLOAT16_expanded/model.onnx
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(110%)
onnx/backend/test/data/node/test_castlike_FLOAT_to_DOUBLE_expanded/model.onnx
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(110%)
onnx/backend/test/data/node/test_castlike_FLOAT_to_FLOAT16_expanded/model.onnx
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(110%)
onnx/backend/test/data/node/test_castlike_FLOAT_to_FLOAT8E4M3FNUZ_expanded/model.onnx
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(110%)
onnx/backend/test/data/node/test_castlike_FLOAT_to_FLOAT8E4M3FN_expanded/model.onnx
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(110%)
onnx/backend/test/data/node/test_castlike_FLOAT_to_FLOAT8E5M2FNUZ_expanded/model.onnx
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(110%)
onnx/backend/test/data/node/test_castlike_FLOAT_to_FLOAT8E5M2_expanded/model.onnx
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(110%)
onnx/backend/test/data/node/test_castlike_FLOAT_to_STRING_expanded/model.onnx
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(110%)
onnx/backend/test/data/node/test_castlike_STRING_to_FLOAT_expanded/model.onnx
Binary file not shown.
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
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
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
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
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