Searched refs:value_structure (Results 1 – 7 of 7) sorted by relevance
/external/tensorflow/tensorflow/python/data/ops/ |
D | optional_ops.py | 72 def value_structure(self): member in Optional 93 value_structure = structure.Structure.from_value(value) 94 encoded_value = value_structure._to_tensor_list(value) # pylint: disable=protected-access 98 value_structure) 101 def none_from_structure(value_structure): argument 114 return _OptionalImpl(gen_dataset_ops.optional_none(), value_structure) 124 def __init__(self, variant_tensor, value_structure): argument 126 self._value_structure = value_structure 145 def value_structure(self): member in _OptionalImpl 153 def __init__(self, value_structure): argument [all …]
|
/external/tensorflow/tensorflow/python/data/kernel_tests/ |
D | optional_test.py | 80 value_structure = structure.TensorStructure(dtypes.float32, []) 81 opt = optional_ops.Optional.none_from_structure(value_structure) 82 self.assertTrue(opt.value_structure.is_compatible_with(value_structure)) 84 opt.value_structure.is_compatible_with( 87 opt.value_structure.is_compatible_with( 105 add_opt = optional_ops._OptionalImpl(add_tensor, opt1.value_structure) 110 opt1.value_structure) 112 opt2.value_structure) 116 opt_none1.value_structure) 132 add_opt = optional_ops._OptionalImpl(add_tensor, opt3.value_structure) [all …]
|
/external/tensorflow/tensorflow/tools/api/golden/v1/ |
D | tensorflow.data.experimental.-optional.pbtxt | 6 name: "value_structure" 26 argspec: "args=[\'value_structure\'], varargs=None, keywords=None, defaults=None"
|
D | tensorflow.data.experimental.-optional-structure.pbtxt | 8 argspec: "args=[\'self\', \'value_structure\'], varargs=None, keywords=None, defaults=None"
|
/external/tensorflow/tensorflow/tools/api/golden/v2/ |
D | tensorflow.data.experimental.-optional.pbtxt | 6 name: "value_structure" 26 argspec: "args=[\'value_structure\'], varargs=None, keywords=None, defaults=None"
|
D | tensorflow.data.experimental.-optional-structure.pbtxt | 8 argspec: "args=[\'self\', \'value_structure\'], varargs=None, keywords=None, defaults=None"
|
/external/tensorflow/tensorflow/python/distribute/ |
D | input_lib.py | 329 def _dummy_tensor_fn(value_structure): argument 355 for feature_shape, feature_type in zip(value_structure._flat_shapes, 356 value_structure._flat_types): 359 if isinstance(value_structure, structure.NestedStructure): 360 result = nest.pack_sequence_as(value_structure._nested_structure, result) 432 lambda: _dummy_tensor_fn(data.value_structure))
|