class_docstr: Data Structure for Tensor in Colossal-AI. It is a subclass of torch.Tensor.
  
  It is only used to trigger the torch function hook.
  
  Args:
      data (torch.Tensor): a torch tensor used as the payload the colotensor.
class_docstr_tok: ["Data","Structure","for","Tensor","in","Colossal-AI",".","It","is","a","subclass","of","torch.Tensor",".","It","is","only","used","to","trigger","the","torch","function","hook",".","Args",":","data","(","torch.Tensor",")",":","a","torch","tensor","used","as","the","payload","the","colotensor","."]
docstr: The signature of the __new__ has to be consistent with the torch.Tensor.
  
  Args:
      data (torch.Tensor): a torch tensor used as the payload the colotensor.
  
  Returns:
      ColoTensor: a ColoTensor wrappers the data.
docstr_tok: ["The","signature","of","the","__new__","has","to","be","consistent","with","the","torch.Tensor",".","Args",":","data","(","torch.Tensor",")",":","a","torch","tensor","used","as","the","payload","the","colotensor",".","Returns",":","ColoTensor",":","a","ColoTensor","wrappers","the","data","."]
code: def __new__(cls, data: torch.Tensor) -> "ColoTensor":
      """
      The signature of the __new__ has to be consistent with the torch.Tensor.
  
      Args:
          data (torch.Tensor): a torch tensor used as the payload the colotensor.
  
      Returns:
          ColoTensor: a ColoTensor wrappers the data.
      """
      if data is None:
          data = torch.empty(0)
      return torch.Tensor._make_subclass(cls, data, data.requires_grad)
  
file_path: ColossalAI/colossalai/tensor/colo_tensor.py
imports: from functools import lru_cache
  from typing import Callable, Set
  import torch
label_desc: Use image node_id 1 for calling the ColoTensor obj's underlying member method code with example usage: obj.__new__(cls, data) and returns: torch