parameters: (cls, tensor: torch.Tensor)
return_statement: return cls(tensor.shape, tensor.dtype, tensor.device)
docstring: Produce an InputTenosrSpec named tuple which contains the
          information of the given PyTorch tensor.
  
          Args:
              tensor (torch.Tensor): A PyTorch tensor.
  
          Returns:
              An InputTensorSpec named tuple.
docstring_summary: Produce an InputTenosrSpec named tuple which contains the
          information of the given PyTorch tensor.
docstring_tokens: Produce an InputTenosrSpec named tuple which contains the information of the given PyTorch tensor .
function: def from_tensor(cls, tensor: torch.Tensor) -> "InputTensorSpec":
          """
          Produce an InputTenosrSpec named tuple which contains the
          information of the given PyTorch tensor.
  
          Args:
              tensor (torch.Tensor): A PyTorch tensor.
  
          Returns:
              An InputTensorSpec named tuple.
          """
          return cls(tensor.shape, tensor.dtype, tensor.device)
function_tokens: def from_tensor ( cls , tensor : torch . Tensor ) -> "InputTensorSpec" : return cls ( tensor . shape , tensor . dtype , tensor . device )