Searched refs:value_structure (Results 1 – 2 of 2) sorted by relevance
163 value_structure = tensor_spec.TensorSpec([], dtypes.float32)164 opt = optional_ops.Optional.empty(value_structure)165 self.assertTrue(opt.element_spec.is_compatible_with(value_structure))437 value_structure = tensor_spec.TensorSpec([], dtypes.float32)438 opt = optional_ops._OptionalImpl(opt_tensor, value_structure)
1465 def _dummy_tensor_fn(value_structure): argument1508 return nest.map_structure(create_dummy_tensor, value_structure)1511 def _recover_shape_fn(data, value_structure): argument1515 for i, spec in enumerate(nest.flatten(value_structure)):