pytorch/torch
Han Qi (qihqi) f9533560cc Use flatbuffer of alternate namespace (#82952)
Summary: Minimal change to make use of flatbuffer with fbsource namespace.

Test Plan: existing unit tests

Differential Revision: D38494999

Pull Request resolved: https://github.com/pytorch/pytorch/pull/82952
Approved by: https://github.com/cccclai
2022-08-09 07:40:59 +00:00
..
_C Get rid of ENABLE_UPGRADERS macro (#77574) 2022-08-09 05:33:14 +00:00
_C_flatbuffer
_decomp Fix device behavior for masked_fill (#82737) 2022-08-04 15:47:56 +00:00
_lazy
_masked
_prims Fix prims.div to return the correct dtype (#82949) 2022-08-09 04:38:17 +00:00
_prims_common Add torch.ops.nvprims namespace for nvFuser-specific prims (#82155) 2022-08-04 16:51:56 +00:00
_refs Update nan_to_num prims (#82908) 2022-08-08 14:28:28 +00:00
_subclasses Sparse fake tensor support (#82172) 2022-08-03 14:29:36 +00:00
amp Fix multiple docstring type mistakes (#82474) 2022-07-29 17:45:37 +00:00
ao [Quant][fx][bc-breaking] Integrate BackendConfig with quantization flow (part 2) (#82557) 2022-08-08 18:55:50 +00:00
autograd Fix multiple docstring type mistakes (#82474) 2022-07-29 17:45:37 +00:00
backends
contrib Change docstring type callable to Callable for consistency (#82487) 2022-08-01 17:26:09 +00:00
cpu
csrc Use flatbuffer of alternate namespace (#82952) 2022-08-09 07:40:59 +00:00
cuda [ROCm] torch.cuda.is_bf16_supported() returns True (#80410) 2022-08-03 01:18:37 +00:00
distributed [c10d] Fix async error in batch_isend_irecv (#82450) 2022-08-08 17:50:22 +00:00
distributions Change docstring type callable to Callable for consistency (#82487) 2022-08-01 17:26:09 +00:00
fft
futures
fx Add a common wrapper for make_fx to handle args and kwargs (#82965) 2022-08-08 17:03:21 +00:00
jit Change docstring type callable to Callable for consistency (#82487) 2022-08-01 17:26:09 +00:00
legacy
lib
linalg [docs] fix inconsistent default rcond value (#82887) 2022-08-06 13:45:16 +00:00
monitor
multiprocessing Rename _Typed/_UntypedStorage to Typed/UntypedStorage and update docs (#82438) 2022-07-30 19:37:08 +00:00
nested
nn Update cross entropy documentation to metion logits clearly (#82538) 2022-08-08 22:24:28 +00:00
onnx [ONNX] Reland #81953 Type utility for converting among JIT, torch and ONNX data types (#82995) 2022-08-08 23:43:43 +00:00
optim Handle complex optimization in Adamax by treating complex numbers as 2D real numbers (#80319) 2022-08-05 21:03:18 +00:00
package Rename _Typed/_UntypedStorage to Typed/UntypedStorage and update docs (#82438) 2022-07-30 19:37:08 +00:00
profiler fix matching against MemcpyAsync (#82782) 2022-08-05 03:25:24 +00:00
quantization Add Custom Module Support List (#82606) 2022-08-03 17:48:51 +00:00
sparse
special
testing Use UnaryUfuncInfo for type conversion functions (#82349) 2022-08-09 04:38:17 +00:00
utils [Refactoring] making the code more Pythonic (#82929) 2022-08-08 06:08:21 +00:00
__config__.py
__future__.py
__init__.py Remove unnecessary import warnings (#82760) 2022-08-04 17:12:17 +00:00
_appdirs.py
_classes.py
_deploy.py Rename _Typed/_UntypedStorage to Typed/UntypedStorage and update docs (#82438) 2022-07-30 19:37:08 +00:00
_jit_internal.py
_linalg_utils.py
_lobpcg.py
_lowrank.py
_meta_registrations.py
_namedtensor_internals.py
_ops.py Better error message for torch.library (#82904) 2022-08-05 23:33:53 +00:00
_python_dispatcher.py
_six.py
_sources.py
_storage_docs.py
_tensor.py Revert "Add DLPack support for XPU backend by mapping to kDLOneAPI in DLPack (#82867)" 2022-08-07 20:38:29 +00:00
_tensor_docs.py Revise sparse docs regarding Sparse Compressed tensors (#82108) 2022-07-29 18:15:09 +00:00
_tensor_str.py Sparse fake tensor support (#82172) 2022-08-03 14:29:36 +00:00
_torch_docs.py Enable dim=None for torch.var (#82765) 2022-08-04 20:47:27 +00:00
_utils.py Rename _Typed/_UntypedStorage to Typed/UntypedStorage and update docs (#82438) 2022-07-30 19:37:08 +00:00
_utils_internal.py
_VF.py
_vmap_internals.py
abi-check.cpp
CMakeLists.txt
custom_class.h Revert "Fix crash on unload torch cpu dll (#67632)" 2022-08-02 00:56:18 +00:00
custom_class_detail.h Revert "Fix crash on unload torch cpu dll (#67632)" 2022-08-02 00:56:18 +00:00
deploy.h
extension.h
functional.py
hub.py Fix multiple docstring type mistakes (#82474) 2022-07-29 17:45:37 +00:00
library.h
library.py
overrides.py
py.typed
quasirandom.py
random.py
README.txt
return_types.py
script.h
serialization.py Allow map location to meta device (#82603) 2022-08-08 19:56:59 +00:00
storage.py Rename _Typed/_UntypedStorage to Typed/UntypedStorage and update docs (#82438) 2022-07-30 19:37:08 +00:00
torch_version.py
types.py

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.