Home
last modified time | relevance | path

Searched refs:value_fn (Results 1 – 21 of 21) sorted by relevance

/external/tensorflow/tensorflow/python/distribute/
Dstrategy_gather_test.py128 def value_fn(ctx): function
133 value_fn)
150 def value_fn(ctx): function
155 value_fn)
178 def value_fn(ctx): function
183 value_fn)
231 def value_fn(ctx): function
235 value_fn)
370 def value_fn(ctx): function
375 value_fn)
[all …]
Dvalues_test.py127 def value_fn(ctx): function
132 distribution.experimental_distribute_values_from_function(value_fn))
147 def value_fn(ctx): function
152 distribution.experimental_distribute_values_from_function(value_fn))
167 def value_fn(ctx): function
171 distribution.experimental_distribute_values_from_function(value_fn))
190 def value_fn(ctx): function
196 distribution.experimental_distribute_values_from_function(value_fn))
215 def value_fn(ctx): function
221 distribution.experimental_distribute_values_from_function(value_fn))
[all …]
Done_device_strategy.py341 def _experimental_distribute_values_from_function(self, value_fn): argument
345 return value_fn(distribute_lib.ValueContext())
Ddistribute_lib.py1623 def experimental_distribute_values_from_function(self, value_fn): argument
1697 value_fn)
2216 def _experimental_distribute_values_from_function(self, value_fn): argument
3431 def _experimental_distribute_values_from_function(self, value_fn): argument
3432 return value_fn(ValueContext())
Dcross_device_ops_test.py242 value_fn = lambda device_idx: inputs[pid * len(devices) + device_idx] function
243 per_replica_value = make_per_replica_value(value_fn, devices)
285 def value_fn(device_idx, idx=i): function
288 per_replica_value = make_per_replica_value(value_fn, devices)
Dparameter_server_strategy.py401 def _experimental_distribute_values_from_function(self, value_fn): argument
405 value_fn(distribute_lib.ValueContext(replica_id,
Dcollective_all_reduce_strategy.py624 def _experimental_distribute_values_from_function(self, value_fn): argument
632 per_replica_values.append(value_fn(value_context))
Dmirrored_strategy.py591 def _experimental_distribute_values_from_function(self, value_fn): argument
594 per_replica_values.append(value_fn(
Dtpu_strategy.py979 def _experimental_distribute_values_from_function(self, value_fn): argument
983 value_fn(distribute_lib.ValueContext(replica_id,
/external/tensorflow/tensorflow/python/data/util/
Dstructure_test.py85 def testFlatStructure(self, value_fn, expected_structure, expected_types, argument
87 value = value_fn()
237 for value_fn in not_equal_value_fns:
238 s3 = structure.type_spec_from_value(value_fn())
330 def testRoundTripConversion(self, value_fn): argument
331 value = value_fn()
709 def testToBatchedTensorList(self, value_fn, element_0_fn): argument
710 batched_value = value_fn()
/external/tensorflow/tensorflow/python/data/kernel_tests/
Doptional_test.py72 name, value_fn, expected_structure = y
74 tf_value_fn=combinations.NamedObject(name, value_fn),
113 name, value, value_fn, gpu_compatible = y
116 tf_value_fn=combinations.NamedObject(name, value_fn),
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.distribute.-mirrored-strategy.pbtxt45 argspec: "args=[\'self\', \'value_fn\'], varargs=None, keywords=None, defaults=None"
Dtensorflow.distribute.experimental.-multi-worker-mirrored-strategy.pbtxt46 argspec: "args=[\'self\', \'value_fn\'], varargs=None, keywords=None, defaults=None"
Dtensorflow.distribute.-multi-worker-mirrored-strategy.pbtxt45 argspec: "args=[\'self\', \'value_fn\'], varargs=None, keywords=None, defaults=None"
Dtensorflow.distribute.-one-device-strategy.pbtxt45 argspec: "args=[\'self\', \'value_fn\'], varargs=None, keywords=None, defaults=None"
Dtensorflow.distribute.experimental.-t-p-u-strategy.pbtxt45 argspec: "args=[\'self\', \'value_fn\'], varargs=None, keywords=None, defaults=None"
Dtensorflow.distribute.experimental.-parameter-server-strategy.pbtxt45 argspec: "args=[\'self\', \'value_fn\'], varargs=None, keywords=None, defaults=None"
Dtensorflow.distribute.-strategy.pbtxt44 argspec: "args=[\'self\', \'value_fn\'], varargs=None, keywords=None, defaults=None"
Dtensorflow.distribute.experimental.-central-storage-strategy.pbtxt45 argspec: "args=[\'self\', \'value_fn\'], varargs=None, keywords=None, defaults=None"
Dtensorflow.distribute.-t-p-u-strategy.pbtxt49 argspec: "args=[\'self\', \'value_fn\'], varargs=None, keywords=None, defaults=None"
/external/tensorflow/tensorflow/python/eager/
Dops_test.py397 def testCastToPrimitiveTypesFrom(self, value_fn): argument
398 x = value_fn()