Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix quantize ops input validation issues.
The majority of these are just missing checks on min/max. PiperOrigin-RevId: 461800665
- Loading branch information
1 parent
0684525
commit 6840ef9
Showing
8 changed files
with
337 additions
and
33 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
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
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,24 @@ | ||
# Tests of TensorFlow quantization ops written using the Python API. | ||
|
||
# buildifier: disable=same-origin-load | ||
load("//tensorflow:tensorflow.bzl", "tf_py_test") | ||
|
||
package( | ||
default_visibility = ["//tensorflow:internal"], | ||
licenses = ["notice"], | ||
) | ||
|
||
tf_py_test( | ||
name = "quantization_ops_test", | ||
size = "small", | ||
srcs = ["quantization_ops_test.py"], | ||
deps = [ | ||
"//tensorflow/python:array_ops", | ||
"//tensorflow/python:client", | ||
"//tensorflow/python:client_testlib", | ||
"//tensorflow/python:framework", | ||
"//tensorflow/python:framework_for_generated_wrappers", | ||
"//tensorflow/python:math_ops", | ||
"//third_party/py/numpy", | ||
], | ||
) |
Oops, something went wrong.