"Fossies" - the Fresh Open Source Software Archive

Member "pytorch-1.8.2/torch/README.txt" (23 Jul 2021, 703 Bytes) of package /linux/misc/pytorch-1.8.2.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 Note [TH abstraction violation]
    2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    3 
    4 TH/THC provide some hpp headers, which are proper C++ headers rather than
    5 C headers.  These headers serve double duty as *internal implementation
    6 detail* headers, whose contents should largely not be used by external
    7 clients.
    8 
    9 Ideally, we would not install these headers at all; instead, you should
   10 use public functions (in headers like `THTensor.h`, NOT `THTensor.hpp`)
   11 to manipulate these structs.  However, there are a few places
   12 in torch/csrc where we violate this abstraction.  They are marked with
   13 a pointer to this note.  Each of those sites will have to be refactored
   14 when we refactor the guts of THTensor and related structures.