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

Function _is_tensor

tensorflow/python/ops/image_ops_impl.py:87–96  ·  view source on GitHub ↗

Returns `True` if `x` is a symbolic tensor-like object. Args: x: A python object to check. Returns: `True` if `x` is a `tf.Tensor` or `tf.Variable`, otherwise `False`.

(x)

Source from the content-addressed store, hash-verified

85
86
87def _is_tensor(x):
88 """Returns `True` if `x` is a symbolic tensor-like object.
89
90 Args:
91 x: A python object to check.
92
93 Returns:
94 `True` if `x` is a `tf.Tensor` or `tf.Variable`, otherwise `False`.
95 """
96 return isinstance(x, (ops.Tensor, variables.Variable))
97
98
99def _ImageDimensions(image, rank):

Callers 9

_assertFunction · 0.70
pad_to_bounding_boxFunction · 0.70
crop_to_bounding_boxFunction · 0.70
max_Function · 0.70
min_Function · 0.70
equal_Function · 0.70
adjust_jpeg_qualityFunction · 0.70
can_handleMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected