Update the tf.constant
python fuzzer to import from the tensorflow pip package.
PiperOrigin-RevId: 351645671 Change-Id: I13bf6ce834397a60e5236a4a012ca31c2010d55e
This commit is contained in:
parent
100b443d8f
commit
5b94f9954b
tensorflow/security/fuzzing
@ -133,7 +133,4 @@ tf_py_fuzz_target(
|
||||
name = "constant_fuzz",
|
||||
srcs = ["constant_fuzz.py"],
|
||||
tags = ["notap"], # Run in OSS only.
|
||||
deps = [
|
||||
"//tensorflow/python:constant_op",
|
||||
],
|
||||
)
|
||||
|
@ -15,11 +15,11 @@
|
||||
"""This is a Python API fuzzer for tf.constant."""
|
||||
import sys
|
||||
import atheris_no_libfuzzer as atheris
|
||||
from tensorflow.python.framework import constant_op
|
||||
import tensorflow as tf
|
||||
|
||||
|
||||
def TestOneInput(data):
|
||||
constant_op.constant(data)
|
||||
tf.constant(data)
|
||||
|
||||
|
||||
def main():
|
||||
|
Loading…
Reference in New Issue
Block a user