Skip to content

Commit 14d5d52

Browse files
colesburysoumith
authored andcommitted
Add placeholder tensor documentation for methods that exist in torch. (pytorch#463)
1 parent 9c218b4 commit 14d5d52

File tree

4 files changed

+1281
-2
lines changed

4 files changed

+1281
-2
lines changed

torch/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,5 +245,7 @@ def storage_type(cls):
245245
import torch.nn
246246
import torch.optim
247247
import torch.multiprocessing
248-
from . import docs # attaches docstrings to torch functions
249-
del docs
248+
249+
# attach docstrings to torch and tensor functions
250+
from . import _torch_docs, _tensor_docs
251+
del _torch_docs, _tensor_docs

0 commit comments

Comments
 (0)