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)
| 85 | |
| 86 | |
| 87 | def _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 | |
| 99 | def _ImageDimensions(image, rank): |
no outgoing calls
no test coverage detected