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

Method has_value

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

Returns a tensor that evaluates to `True` if this optional has a value. Args: name: (Optional.) A name for the created operation. Returns: A scalar `tf.Tensor` of type `tf.bool`.

(self, name=None)

Source from the content-addressed store, hash-verified

48
49 @abc.abstractmethod
50 def has_value(self, name=None):
51 """Returns a tensor that evaluates to `True` if this optional has a value.
52
53 Args:
54 name: (Optional.) A name for the created operation.
55
56 Returns:
57 A scalar `tf.Tensor` of type `tf.bool`.
58 """
59 raise NotImplementedError("Optional.has_value()")
60
61 @abc.abstractmethod
62 def get_value(self, name=None):

Callers 15

PrintNodeInfoMethod · 0.45
testFromValueMethod · 0.45
testFromSparseTensorMethod · 0.45
testFromNoneMethod · 0.45
testAddNMethod · 0.45
testZerosLikeMethod · 0.45
testCopyToGPUMethod · 0.45
testNestedCopyToGPUMethod · 0.45
testGetNextAsOptionalMethod · 0.45

Calls

no outgoing calls

Tested by 12

testFromValueMethod · 0.36
testFromSparseTensorMethod · 0.36
testFromNoneMethod · 0.36
testAddNMethod · 0.36
testZerosLikeMethod · 0.36
testCopyToGPUMethod · 0.36
testNestedCopyToGPUMethod · 0.36
testGetNextAsOptionalMethod · 0.36