class_docstr: A mix-in class for storing tensors as properties with helper methods.
docstr: Update the tensor properties of other with the cloned properties of self.
docstr_tok: ["Update","the","tensor","properties","of","other","with","the","cloned","properties","of","self","."]
code: def clone(self, other) -> "TensorProperties":
      """
      Update the tensor properties of other with the cloned properties of self.
      """
      for k in dir(self):
          v = getattr(self, k)
          if (
              inspect.ismethod(v)
              or k.startswith("__")
              or type(v) is TypeVar
          ):
              continue
          if torch.is_tensor(v):
              v_clone = v.clone()
          else:
              v_clone = copy.deepcopy(v)
          setattr(other, k, v_clone)
      return other
  
imports: import copy
  import inspect
  import warnings
  from typing import Any, List, Optional, Tuple, TypeVar, Union
  import numpy
  import torch
  import torch.nn
  from ..common.datatypes import Device, make_device
label_desc: Use image node_id 8 for calling the TensorProperties obj's underlying member method code with example usage: obj.clone(other) and returns: other