Home
last modified time | relevance | path

Searched refs:defun (Results 1 – 25 of 60) sorted by relevance

123

/external/tensorflow/tensorflow/python/keras/tests/
Dcustom_training_loop_test.py71 def add_loss_step(defun): argument
85 if defun:
92 def batch_norm_step(defun): argument
108 if defun:
115 def add_metric_step(defun): argument
134 if defun:
151 eager_result = train_step(defun=False)
152 fn_result = train_step(defun=True)
156 def test_training_arg_propagation(self, defun): argument
164 if defun:
[all …]
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/
Dmap_defun_op_test.py53 @function.defun(input_signature=[tensor_spec.TensorSpec([2], dtypes.int32)])
68 @function.defun(input_signature=[tensor_spec.TensorSpec([2], dtypes.int32)])
81 @function.defun(input_signature=[tensor_spec.TensorSpec([], dtypes.int32)])
95 @function.defun(input_signature=[tensor_spec.TensorSpec([2], dtypes.int32)])
108 @function.defun(input_signature=[tensor_spec.TensorSpec([2], dtypes.int32)])
122 @function.defun(input_signature=[tensor_spec.TensorSpec([2], dtypes.int32)])
134 @function.defun(input_signature=[tensor_spec.TensorSpec([2], dtypes.int32)])
145 @function.defun(input_signature=[
165 @function.defun(input_signature=[tensor_spec.TensorSpec([], dtypes.int32)])
178 @function.defun(input_signature=[tensor_spec.TensorSpec([5], dtypes.int64)])
[all …]
Dget_single_element_test.py93 @function.defun
120 @function.defun
/external/tensorflow/tensorflow/python/eager/benchmarks/resnet50/
Dresnet50_test.py96 def _apply(self, defun=False, execution_mode=None): argument
99 if defun:
109 self._apply(defun=False)
112 self._apply(defun=False, execution_mode=context.ASYNC)
115 self._apply(defun=True)
118 self._apply(defun=True, execution_mode=context.ASYNC)
303 def _benchmark_eager_apply(self, label, device_and_format, defun=False, argument
308 if defun:
330 defun=False)
336 defun=False,
[all …]
/external/tensorflow/tensorflow/compiler/tests/
Deager_test.py305 matmul = function.defun(math_ops.matmul)
327 model = function.defun(model)
337 @function.defun
403 f = function.defun(f)
415 f = function.defun(f)
429 f = function.defun(f)
463 foo = function.defun(foo)
485 @function.defun
502 @function.defun
516 @function.defun
[all …]
Dcond_test.py47 @function.defun
67 @function.defun
227 @function.defun
/external/tensorflow/tensorflow/python/kernel_tests/
Dcontrol_flow_util_v2_test.py55 @function.defun
56 def defun(): function
59 defun()
Dcond_v2_test.py300 @function.defun
323 @function.defun
326 @function.defun
345 @function.defun
348 @function.defun
351 @function.defun
512 @function.defun
570 @function.defun
573 @function.defun
616 @function.defun
[all …]
/external/tensorflow/tensorflow/python/data/experimental/benchmarks/
Dmap_defun_benchmark.py48 @function.defun(input_signature=[tensor_spec.TensorSpec([], dtypes.int32)])
49 def defun(x): function
58 map_defun_op = map_defun.map_defun(defun, [base], [dtypes.int32], [()])
/external/tensorflow/tensorflow/python/data/experimental/ops/
Dprefetching_ops.py107 @function.defun()
123 @function.defun()
134 @function.defun(input_signature=[tensor_spec.TensorSpec([], dtypes.string)])
166 @function.defun(input_signature=[tensor_spec.TensorSpec([], dtypes.string)])
185 @function.defun(input_signature=[tensor_spec.TensorSpec([], dtypes.string)])
/external/tensorflow/tensorflow/python/saved_model/
Dsignature_serialization.py24 from tensorflow.python.eager import function as defun unknown
44 if (isinstance(function, (defun.Function, def_function.Function)) and
47 if not isinstance(function, defun.ConcreteFunction):
258 if isinstance(value, (def_function.Function, defun.ConcreteFunction))
284 assert isinstance(func, defun.ConcreteFunction)
Dfunction_serialization.py22 from tensorflow.python.eager import function as defun unknown
158 inner_concrete = defun.ConcreteFunction(concrete_function.graph)
168 fn = defun.ConcreteFunction(
/external/tensorflow/tensorflow/python/eager/
Dfunction_defun_collection_test.py36 dict(testcase_name='Defun', function_decorator=function.defun),
63 dict(testcase_name='Defun', function_decorator=function.defun),
86 @function.defun
Dfunction_test.py398 @function.defun
409 @function.defun(experimental_relax_shapes=True)
595 @function.defun(experimental_relax_shapes=True)
673 @function.defun
725 function_decorator=function.defun),
753 @function.defun
1028 defined = function.defun(f)
1068 @function.defun
1085 defined = function.defun(f)
1251 @function.defun
[all …]
Dforwardprop.py192 _jvp_relaxed_shapes = function.defun(
194 _jvp_exact_shapes = function.defun(
/external/python/cpython2/Modules/_ctypes/libffi/doc/
Dlibffi.texi129 @defun ffi_status ffi_prep_cif (ffi_cif *@var{cif}, ffi_abi @var{abi}, unsigned int @var{nargs}, ff…
149 @end defun
155 @defun ffi_status ffi_prep_cif_var (ffi_cif *@var{cif}, ffi_abi var{abi}, unsigned int @var{nfixeda…
173 @end defun
180 @defun void ffi_call (ffi_cif *@var{cif}, void *@var{fn}, void *@var{rvalue}, void **@var{avalues})
199 @end defun
467 @defun void *ffi_closure_alloc (size_t @var{size}, void **@var{code})
473 @end defun
476 @defun void ffi_closure_free (void *@var{writable})
479 @end defun
[all …]
/external/tensorflow/tensorflow/python/keras/saving/saved_model/
Dserialized_attributes.py22 from tensorflow.python.eager import function as defun unknown
194 (defun.Function, def_function.Function))):
/external/tensorflow/tensorflow/python/data/ops/
Dmulti_device_iterator_ops.py50 @function.defun(autograph=False) # Pure graph code.
57 @function.defun(autograph=False) # Pure graph code.
69 @function.defun(
110 @function.defun(
119 @function.defun(
/external/tensorflow/tensorflow/python/tpu/
Dtpu_strategy_util.py87 @function.defun
188 @function.defun
/external/tensorflow/tensorflow/python/training/tracking/
Dtracking.py27 from tensorflow.python.eager import function as defun unknown
124 defun.ConcreteFunction)):
/external/libffi/doc/
Dlibffi.texi142 @defun ffi_status ffi_prep_cif (ffi_cif *@var{cif}, ffi_abi @var{abi}, unsigned int @var{nargs}, ff…
162 @end defun
168 @defun ffi_status ffi_prep_cif_var (ffi_cif *@var{cif}, ffi_abi @var{abi}, unsigned int @var{nfixed…
186 @end defun
197 @defun void ffi_call (ffi_cif *@var{cif}, void *@var{fn}, void *@var{rvalue}, void **@var{avalues})
233 @end defun
484 @defun ffi_status ffi_get_struct_offsets (ffi_abi abi, ffi_type *struct_type, size_t *offsets)
500 @end defun
804 @defun void *ffi_closure_alloc (size_t @var{size}, void **@var{code})
810 @end defun
[all …]
/external/tensorflow/tensorflow/python/distribute/
Dmirrored_strategy_test.py1058 for defun in defuns:
1065 defun.get_concrete_function, args=[mock_model] + inputs))
1076 @function.defun
1086 @function.defun
1090 @function.defun
1101 @function.defun
1105 @function.defun
1116 @function.defun
1120 @function.defun
1135 @function.defun
/external/tensorflow/tensorflow/python/ops/
Dbatch_ops.py93 @function.defun(autograph=autograph)
/external/tensorflow/tensorflow/python/framework/
Dfunction_def_to_graph_test.py201 @function.defun
223 @function.defun
Dauto_control_deps_test.py716 @function.defun
746 @function.defun
758 optimizer.apply_gradients = function.defun(optimizer.apply_gradients)
776 @function.defun
792 @function.defun

123