pytorch/torch
Mikhail Zolotukhin f23f21dafe [TensorExpr] Remove 'Placeholder' class. (#64887)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/64887

BufHandle has exactly the same functionality and should be used instead.

Differential Revision:
D30889483
D30889483

Test Plan: Imported from OSS

Reviewed By: navahgar

Pulled By: ZolotukhinM

fbshipit-source-id: 365fe8e396731b88920535a3de96bd3301aaa3f3
2021-09-14 00:22:44 -07:00
..
_C Allow disabling cache in autocast (automatic mixed precision) (#63552) 2021-09-08 07:47:18 -07:00
ao torch.ao migration: fake_quantize.py, phase 1 (#64814) 2021-09-13 15:22:28 -07:00
autograd Add forward AD support for custom Functions (#64061) 2021-09-01 14:33:09 -07:00
backends NNAPI: Support const values in binary ops 2021-08-20 21:10:26 -07:00
contrib Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
cpu Allow disabling cache in autocast (automatic mixed precision) (#63552) 2021-09-08 07:47:18 -07:00
csrc [TensorExpr] Remove 'Placeholder' class. (#64887) 2021-09-14 00:22:44 -07:00
cuda Allow disabling cache in autocast (automatic mixed precision) (#63552) 2021-09-08 07:47:18 -07:00
distributed Let all_reduce_coalesced and all_gather_coalesced return Future objects (#64722) 2021-09-10 07:45:25 -07:00
distributions Poisson zero rate (#61511) 2021-08-19 08:30:28 -07:00
fft Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
for_onnx
futures Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
fx add acc_ops.max, acc_ops.maximum, consolidate acc_ops.min and acc_ops.minimum 2021-09-13 18:04:33 -07:00
jit Back out "D30740897 Add fusion enabled apis" (#64500) 2021-09-04 20:55:58 -07:00
legacy
lib Disable avoid-non-const-global-variables lint check (#62008) 2021-07-22 18:04:40 -07:00
linalg Array API: Add torch.linalg.matmul alias to torch.matmul (#63227) 2021-09-07 12:35:32 -07:00
multiprocessing
nn [nn] no batch dim support: CosineEmbeddingLoss (#64590) 2021-09-13 10:45:33 -07:00
onnx fix typo in torch/onnx/utils.py (#63396) 2021-09-10 09:37:44 -07:00
optim [doc][hackathon] To add Adadelta Optimizer to the documentation (#63255) 2021-09-10 16:49:12 -07:00
package Revert D29639797: [package] error if we try to mock a module in 3.6 2021-07-09 19:31:04 -07:00
profiler [Profiler] Change FLOP/s to Total FLOPs (#62779) 2021-08-16 13:43:32 -07:00
quantization torch.ao migration: fake_quantize.py, phase 1 (#64814) 2021-09-13 15:22:28 -07:00
sparse Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
special [special] Alias igamma, igammac to special.gammaninc, special.gammaincc (#61902) 2021-09-07 15:31:26 -07:00
testing Add forward AD for torch.linalg.eigh (#62163) 2021-09-13 21:15:38 -07:00
utils [WIP] Example of DataPipes and DataFrames integration (#60840) 2021-09-13 18:50:15 -07:00
__config__.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
__future__.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
__init__.py Adds DLPack support (#57110) 2021-09-12 19:47:15 -07:00
_appdirs.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
_classes.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
_deploy.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
_jit_internal.py Support Union in TorchScript (#64234) 2021-09-03 06:12:24 -07:00
_linalg_utils.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
_lobpcg.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
_lowrank.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
_namedtensor_internals.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
_ops.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
_python_dispatcher.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
_six.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
_sources.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
_storage_docs.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
_tensor_docs.py Initial implementation of nanmean (#62671) 2021-09-13 05:53:58 -07:00
_tensor_str.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
_tensor.py Adds DLPack support (#57110) 2021-09-12 19:47:15 -07:00
_torch_docs.py Initial implementation of nanmean (#62671) 2021-09-13 05:53:58 -07:00
_utils_internal.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
_utils.py Add support for the ONNX Runtime Eager Mode backend (#58248) 2021-08-20 11:17:13 -07:00
_VF.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
_vmap_internals.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
abi-check.cpp
autocast_mode.py Allow disabling cache in autocast (automatic mixed precision) (#63552) 2021-09-08 07:47:18 -07:00
CMakeLists.txt [torch/deploy] add torch.distributed to build (#63918) 2021-08-26 20:58:44 -07:00
custom_class_detail.h
custom_class.h
deploy.h
extension.h
functional.py Fix torch.istft length mismatch and window runtime error (#63469) 2021-09-02 09:31:47 -07:00
hub.py Fixes and details to torchhub docs (#63783) 2021-09-02 09:32:57 -07:00
library.h Add support for the ONNX Runtime Eager Mode backend (#58248) 2021-08-20 11:17:13 -07:00
overrides.py Initial implementation of nanmean (#62671) 2021-09-13 05:53:58 -07:00
py.typed
quasirandom.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
random.py Adds return type annotation for fork_rng function (#63724) 2021-08-27 09:03:40 -07:00
README.txt
script.h
serialization.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
storage.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
torch_version.py Added more version comparison operations (#63848) 2021-09-09 10:30:20 -07:00
types.py Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00

Note [TH abstraction violation]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

TH/THC provide some hpp headers, which are proper C++ headers rather than
C headers.  These headers serve double duty as *internal implementation
detail* headers, whose contents should largely not be used by external
clients.

Ideally, we would not install these headers at all; instead, you should
use public functions (in headers like `THTensor.h`, NOT `THTensor.hpp`)
to manipulate these structs.  However, there are a few places
in torch/csrc where we violate this abstraction.  They are marked with
a pointer to this note.  Each of those sites will have to be refactored
when we refactor the guts of THTensor and related structures.