wrap_function.py | 105 When we import a GraphDef inside a wrap_function, no Python graph building 219 `tf.compat.v1.wrap_function` to learn more about wrapping V1 functions. 243 add = g.wrap_function(add_v1, [tf.TensorSpec([], tf.int32)]) 244 increment_var = g.wrap_function(increment_var_v1, 276 def wrap_function(self, fn, signature, name=None): member in class:WrappedGraph 298 @tf_export(v1=["wrap_function"]) 299 def wrap_function(fn, signature, name=None): function 304 created by `fn` will be owned by the object returned by `wrap_function`. The 318 f_add = tf.compat.v1.wrap_function(f, [tf.TensorSpec((), tf.float32), True]) 323 # Can call tf.compat.v1.wrap_function again to get a new trace, a new se [all...] |