is_tensor_object¶
-
tfsnippet.utils.
is_tensor_object
(x)¶ Test whether or not x is a tensor object.
tf.Tensor
,tf.Variable
,TensorWrapper
andzhusuan.StochasticTensor
are considered to be tensor objects.Parameters: x – The object to be tested. Returns: A boolean indicating whether x is a tensor object. Return type: bool