/external/tensorflow/tensorflow/python/util/ |
tf_contextlib.py | 22 from tensorflow.python.util import tf_decorator 26 """A tf_decorator-aware wrapper for `contextlib.contextmanager`. 36 return tf_decorator.make_decorator(target, context_manager, 'contextmanager')
|
tf_decorator_test.py | 15 """Unit tests for tf_decorator.""" 26 from tensorflow.python.util import tf_decorator 33 return tf_decorator.TFDecorator(decorator_name, target, decorator_doc) 52 return tf_decorator.make_decorator(target, wrapper) 92 tf_decorator.TFDecorator('', test_function).decorated_target) 96 tf_decorator.TFDecorator('decorator name', 101 tf_decorator.TFDecorator('', test_function, 111 tf_decorator.TFDecorator('', test_function, '', 116 tf_decorator.TFDecorator('', test_function).__name__) 120 tf_decorator.TFDecorator('', test_function).__doc__ [all...] |
tf_inspect.py | 22 from tensorflow.python.util import tf_decorator 43 decorators, target = tf_decorator.unwrap(object) 63 decorators, target = tf_decorator.unwrap(obj) 120 unwrapped_object = tf_decorator.unwrap(object)[1] 149 return _inspect.getsource(tf_decorator.unwrap(object)[1]) 154 return _inspect.isclass(tf_decorator.unwrap(object)[1]) 159 return _inspect.isfunction(tf_decorator.unwrap(object)[1]) 164 return _inspect.ismethod(tf_decorator.unwrap(object)[1]) 169 return _inspect.ismodule(tf_decorator.unwrap(object)[1]) 174 return _inspect.isroutine(tf_decorator.unwrap(object)[1] [all...] |
tf_export.py | 46 from tensorflow.python.util import tf_decorator 84 _, undecorated_f = tf_decorator.unwrap(f) 87 _, undecorated_func = tf_decorator.unwrap(func)
|
tf_should_use.py | 26 from tensorflow.python.util import tf_decorator 119 return tf_decorator.make_decorator( 155 return tf_decorator.make_decorator(
|
tf_contextlib_test.py | 24 from tensorflow.python.util import tf_decorator 79 decorators, target = tf_decorator.unwrap(test_params_and_defaults) 81 self.assertTrue(isinstance(decorators[0], tf_decorator.TFDecorator)) 83 self.assertFalse(isinstance(target, tf_decorator.TFDecorator))
|
tf_inspect_test.py | 26 from tensorflow.python.util import tf_decorator 33 return tf_decorator.TFDecorator(decorator_name, target, decorator_doc) 84 decorator = tf_decorator.TFDecorator('', test_undecorated_function, '', 95 inner_decorator = tf_decorator.TFDecorator('', test_undecorated_function, 97 outer_decorator = tf_decorator.TFDecorator('', inner_decorator) 106 inner_decorator = tf_decorator.TFDecorator('', test_undecorated_function, 108 outer_decorator = tf_decorator.TFDecorator('', inner_decorator, '', 119 self.assertTrue('tf_decorator.py' in tf_inspect.getfile( 120 test_decorator('decorator')(tf_decorator.unwrap))) 321 decorated = tf_decorator.make_decorator [all...] |
tf_export_test.py | 25 from tensorflow.python.util import tf_decorator 146 return tf_decorator.make_decorator(func, wrapper)
|
deprecation.py | 29 from tensorflow.python.util import tf_decorator 118 For functions, it returns a function wrapped by `tf_decorator.make_decorator`. 194 return tf_decorator.make_decorator( 251 return tf_decorator.make_decorator( 433 return tf_decorator.make_decorator(func, new_func, 'deprecated', 498 return tf_decorator.make_decorator(func, new_func, 'deprecated',
|
/external/tensorflow/tensorflow/python/estimator/ |
util.py | 24 from tensorflow.python.util import tf_decorator 29 _, fn = tf_decorator.unwrap(fn)
|
/external/tensorflow/tensorflow/contrib/framework/python/ops/ |
arg_scope.py | 67 from tensorflow.python.util import tf_decorator 187 return tf_decorator.make_decorator(func, func_with_args)
|
/external/tensorflow/tensorflow/python/eager/ |
custom_gradient.py | 27 from tensorflow.python.util import tf_decorator 91 return tf_decorator.make_decorator(f, decorated)
|
graph_callable.py | 35 from tensorflow.python.util import tf_decorator 406 return tf_decorator.make_decorator(func,
|
function.py | 43 from tensorflow.python.util import tf_decorator 770 return tf_decorator.make_decorator(func, named_defun(func, name)) [all...] |
/external/tensorflow/tensorflow/python/platform/ |
flags.py | 28 from tensorflow.python.util import tf_decorator 60 return tf_decorator.make_decorator(original_function, wrapper)
|
googletest.py | 37 from tensorflow.python.util import tf_decorator 209 _, obj = tf_decorator.unwrap(obj)
|
/external/tensorflow/tensorflow/tools/api/generator/ |
create_python_api.py | 28 from tensorflow.python.util import tf_decorator 101 _, attr = tf_decorator.unwrap(attr)
|
/external/tensorflow/tensorflow/tools/api/lib/ |
python_object_to_proto_visitor.py | 23 from tensorflow.python.util import tf_decorator 123 _, member_obj = tf_decorator.unwrap(member_obj)
|
/external/tensorflow/tensorflow/python/keras/_impl/keras/utils/ |
generic_utils.py | 31 from tensorflow.python.util import tf_decorator 128 _, instance = tf_decorator.unwrap(instance)
|
/external/tensorflow/tensorflow/python/ops/ |
template.py | 30 from tensorflow.python.util import tf_decorator 204 func_ = tf_decorator.make_decorator(func_, functools.partial(
|
/external/tensorflow/tensorflow/python/framework/ |
function.py | 40 from tensorflow.python.util import tf_decorator [all...] |
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/ |
estimator.py | 75 from tensorflow.python.util import tf_decorator 190 _, fn = tf_decorator.unwrap(fn) [all...] |
head.py | 48 from tensorflow.python.util import tf_decorator [all...] |