(x)
return x if isinstance(x, np.ndarray) else x.numpy()
Converts non-NumPy tensors to NumPy arrays.
Converts non-NumPy tensors to NumPy arrays.
Converts non - NumPy tensors to NumPy arrays .
def _to_numpy(x):
  """Converts non-NumPy tensors to NumPy arrays."""
  return x if isinstance(x, np.ndarray) else x.numpy()
def _to_numpy ( x ) : return x if isinstance ( x , np . ndarray ) else x . numpy ( )