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

Method get_value

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

Returns the value wrapped by this optional. If this optional does not have a value (i.e. `self.has_value()` evaluates to `False`), this operation will raise `tf.errors.InvalidArgumentError` at runtime. Args: name: (Optional.) A name for the created operation. Returns:

(self, name=None)

Source from the content-addressed store, hash-verified

60
61 @abc.abstractmethod
62 def get_value(self, name=None):
63 """Returns the value wrapped by this optional.
64
65 If this optional does not have a value (i.e. `self.has_value()` evaluates
66 to `False`), this operation will raise `tf.errors.InvalidArgumentError`
67 at runtime.
68
69 Args:
70 name: (Optional.) A name for the created operation.
71
72 Returns:
73 The wrapped value.
74 """
75 raise NotImplementedError("Optional.get_value()")
76
77 @abc.abstractproperty
78 def value_structure(self):

Callers 15

testFromValueMethod · 0.45
testFromSparseTensorMethod · 0.45
testFromNoneMethod · 0.45
testAddNMethod · 0.45
testNestedAddNMethod · 0.45
testZerosLikeMethod · 0.45
testNestedZerosLikeMethod · 0.45
testCopyToGPUMethod · 0.45
testNestedCopyToGPUMethod · 0.45
testOptionalSpecMethod · 0.45

Calls

no outgoing calls

Tested by 15

testFromValueMethod · 0.36
testFromSparseTensorMethod · 0.36
testFromNoneMethod · 0.36
testAddNMethod · 0.36
testNestedAddNMethod · 0.36
testZerosLikeMethod · 0.36
testNestedZerosLikeMethod · 0.36
testCopyToGPUMethod · 0.36
testNestedCopyToGPUMethod · 0.36
testOptionalSpecMethod · 0.36