parameters: (self)
return_statement: return self.storage().is_shared()
docstring: r"""Checks if tensor is in shared memory.
  
          This is always ``True`` for CUDA tensors.
docstring_summary: r"""Checks if tensor is in shared memory.
docstring_tokens: r Checks if tensor is in shared memory .
function: def is_shared(self):
          r"""Checks if tensor is in shared memory.
  
          This is always ``True`` for CUDA tensors.
          """
          if has_torch_function_unary(self):
              return handle_torch_function(Tensor.is_shared, (self,), self)
          return self.storage().is_shared()
function_tokens: def is_shared ( self ) : if has_torch_function_unary ( self ) : return handle_torch_function ( Tensor . is_shared , ( self , ) , self ) return self . storage ( ) . is_shared ( )