Parent classes: File

A MemoryFile is a particular File which is able to perform basic read/write operations on a buffer in RAM. It implements all methods described in File.

The data of the this File is contained into a NULL terminated CharStorage.

Subsections

  1. torch.MemoryFile([mode])
  2. torch.MemoryFile(storage, mode)
  3. [CharStorage] storage()