parameters: (param_name, input_data, cls_name)
docstring: Internal function, used to check whether the input data is Tensor.
docstring_summary: Internal function, used to check whether the input data is Tensor.
docstring_tokens: Internal function used to check whether the input data is Tensor .
function: def _check_is_tensor(param_name, input_data, cls_name):
      """Internal function, used to check whether the input data is Tensor."""
      if input_data is not None and not isinstance(P.typeof(input_data), mstype.tensor_type):
          raise TypeError(f"For '{cls_name}', the '{param_name}' should be '{mstype.tensor_type}', "
                          f"but got '{P.typeof(input_data)}'")
function_tokens: def _check_is_tensor ( param_name , input_data , cls_name ) : if input_data is not None and not isinstance ( P . typeof ( input_data ) , mstype . tensor_type ) : raise TypeError ( f"For '{cls_name}', the '{param_name}' should be '{mstype.tensor_type}', " f"but got '{P.typeof(input_data)}'" )