MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / none_from_structure

Method none_from_structure

tensorflow/python/data/ops/optional_ops.py:108–121  ·  view source on GitHub ↗

Returns an `Optional` that has no value. NOTE: This method takes an argument that defines the structure of the value that would be contained in the returned `Optional` if it had a value. Args: value_structure: A `Structure` object representing the structure of the compone

(value_structure)

Source from the content-addressed store, hash-verified

106
107 @staticmethod
108 def none_from_structure(value_structure):
109 """Returns an `Optional` that has no value.
110
111 NOTE: This method takes an argument that defines the structure of the value
112 that would be contained in the returned `Optional` if it had a value.
113
114 Args:
115 value_structure: A `Structure` object representing the structure of the
116 components of this optional.
117
118 Returns:
119 An `Optional` that has no value.
120 """
121 return _OptionalImpl(gen_dataset_ops.optional_none(), value_structure)
122
123
124class _OptionalImpl(Optional):

Callers 5

testFromNoneMethod · 0.80
testAddNMethod · 0.80
testZerosLikeMethod · 0.80
testCopyToGPUMethod · 0.80
testNestedCopyToGPUMethod · 0.80

Calls 1

_OptionalImplClass · 0.85

Tested by 5

testFromNoneMethod · 0.64
testAddNMethod · 0.64
testZerosLikeMethod · 0.64
testCopyToGPUMethod · 0.64
testNestedCopyToGPUMethod · 0.64