MCPcopy Create free account
hub / github.com/alibaba/nann / is_tensor

Function is_tensor

tensorflow/tensorflow/python/framework/tensor_util.py:935–949  ·  view source on GitHub ↗

Checks whether `x` is a tensor or "tensor-like". If `is_tensor(x)` returns `True`, it is safe to assume that `x` is a tensor or can be converted to a tensor using `ops.convert_to_tensor(x)`. Args: x: A python object to check. Returns: `True` if `x` is a tensor or "tensor-like", `F

(x)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

constant_valueFunction · 0.70
maybe_set_static_shapeFunction · 0.70
tensorMethod · 0.50
GetTrtDimsMethod · 0.50
GetTfTypeMethod · 0.50
DebugStringMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected