Home
last modified time | relevance | path

Searched refs:value_structure (Results 1 – 7 of 7) sorted by relevance

/external/tensorflow/tensorflow/python/data/ops/
Doptional_ops.py72 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/
Doptional_test.py80 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/
Dtensorflow.data.experimental.-optional.pbtxt6 name: "value_structure"
26 argspec: "args=[\'value_structure\'], varargs=None, keywords=None, defaults=None"
Dtensorflow.data.experimental.-optional-structure.pbtxt8 argspec: "args=[\'self\', \'value_structure\'], varargs=None, keywords=None, defaults=None"
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.data.experimental.-optional.pbtxt6 name: "value_structure"
26 argspec: "args=[\'value_structure\'], varargs=None, keywords=None, defaults=None"
Dtensorflow.data.experimental.-optional-structure.pbtxt8 argspec: "args=[\'self\', \'value_structure\'], varargs=None, keywords=None, defaults=None"
/external/tensorflow/tensorflow/python/distribute/
Dinput_lib.py329 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))