Open-Source Wikis

/

PyTorch

/

API

pytorch/pytorch

API

PyTorch exposes APIs at several levels. Most users only ever touch the Python one; extension authors and embedders need the others.

Page What it is
Python API The torch.* package surface
C++ API (libtorch) The C++ frontend you link against from non-Python code
C-API stable The ABI-stable subset for cross-version extensions

For runtime debug controls and environment variables, see Reference / Configuration.

Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.

API – PyTorch wiki | Factory