


is_tensor_like(TensorLike())
   True



torch.overrides.is_tensor_method_or_property(func)
Returns True if the function passed in is a handler for a method or
   property belonging to "torch.Tensor", as passed into
   "torch_function".
Note:
 For properties, their "__get__" method must be passed in.

This may be needed, in particular, for the following reasons:


Methods/properties sometimes don't contain a module slot.


They require that the first passed-in argument is an instance of
      "torch.Tensor".


-[ Examples ]-



is_tensor_method_or_property(torch.Tensor.add)
   True
is_tensor_method_or_property(torch.add)
   False



Return type:
      bool
torch.overrides.wrap_torch_function(dispatcher)
Wraps a given function with "torch_function" -related
   functionality.
Parameters:
      dispatcher (Callable) -- A callable that returns an
      iterable of Tensor-likes passed into the function.
Note: