code: def load_tensor(f, format=None):  # type: (Union[IO[bytes], Text], Optional[Any]) -> TensorProto
      '''
      Loads a serialized TensorProto into memory
  
      @params
      f can be a file-like object (has "read" function) or a string containing a file name
      format is for future use
  
      @return
      Loaded in-memory TensorProto
      '''
      s = _load_bytes(f)
      return load_tensor_from_string(s, format=formatf load_tensor(f, format=None):  # type: (Union[IO[bytes], Text], Optional[Any]) -> TensorProto
      '''
      Loads a serialized TensorProto into memory
  
      @params
      f can be a file-like object (has "read" function) or a string containing a file name
      format is for future use
  
      @return
      Loaded in-memory TensorProto
      '''
      s = _load_bytes(f)
      return load_tensor_from_string(s, format=format)
docs: Loads a serialized TensorProto into memory
  
      @params
      f can be a file-like object (has "read" function) or a string containing a file name
      format is for future use
  
      @return
      Loaded in-memory TensorProto