pytorch/torch
David Boetius b652fbc57a Fix torch.nn.functional.gelu docstring formatting (#89061)
The docstring of `torch.nn.functional.gelu` is formatted incorrectly, so that part of the math isn't rendered and there are extra blocks when there shouldn't: https://pytorch.org/docs/stable/generated/torch.nn.functional.gelu.html

I didn't build the docs, so I am not 100% sure that I got the formatting right, but I am confident.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/89061
Approved by: https://github.com/bdhirsh, https://github.com/kit1980
2022-11-18 01:57:41 +00:00
..
_C PyDispatcher integration with functorch (#88785) 2022-11-16 00:46:59 +00:00
_C_flatbuffer
_decomp Fix decomp for embedding_backward and simplify the decomposition of embedding_dense and embedding_dense_backward (#87204) 2022-11-16 17:46:54 +00:00
_dispatch
_dynamo Rewrite assert statement with torch._assert under config (#88246) 2022-11-17 19:49:31 +00:00
_functorch PyDispatcher integration with functorch (#88785) 2022-11-16 00:46:59 +00:00
_inductor Revert "Support masked_fill (#88736)" 2022-11-17 18:27:08 +00:00
_lazy
_prims Revert "Reland "Towards unifying symbolic and non symbolic fake tensor (#89038)" (#89143)" 2022-11-17 17:02:36 +00:00
_prims_common Revert "Reland "Towards unifying symbolic and non symbolic fake tensor (#89038)" (#89143)" 2022-11-17 17:02:36 +00:00
_refs Fix typos in messages under torch (#89049) 2022-11-17 04:18:14 +00:00
_subclasses Revert "Reland "Towards unifying symbolic and non symbolic fake tensor (#89038)" (#89143)" 2022-11-17 17:02:36 +00:00
amp
ao Fix typos in messages under torch (#89049) 2022-11-17 04:18:14 +00:00
autograd Fix some naughty uses of reshape/flatten (#88999) 2022-11-14 23:38:35 +00:00
backends Add an env var to skip cudnn version compatibility check (#89184) 2022-11-17 20:10:52 +00:00
contrib
cpu
csrc [JIT][Security] Do not blindly eval input string (#89189) 2022-11-17 22:05:30 +00:00
cuda Fix typos in messages under torch (#89049) 2022-11-17 04:18:14 +00:00
distributed [torchrec] [composable] update ShardedEmbeddingBagCollection to be use registered EBCs with shardedTensors as registered modules (#758) (#88026) 2022-11-17 04:26:13 +00:00
distributions Fix typos in messages under torch (#89049) 2022-11-17 04:18:14 +00:00
fft Fix typos used in documents under torch directory (#88300) 2022-11-02 09:38:13 +00:00
futures
fx Fix typos in messages under torch (#89049) 2022-11-17 04:18:14 +00:00
jit [JIT][Security] Do not blindly eval input string (#89189) 2022-11-17 22:05:30 +00:00
legacy
lib
linalg improving torch.linalg.lstsq documentation formatting (#89013) 2022-11-14 23:58:46 +00:00
masked Revert "rename DisableTorchFunction to DisableTorchFunctionSubclass (#88218)" 2022-11-11 19:13:05 +00:00
monitor
multiprocessing Deprecate TypedStorage, its derived classes, and all of their public methods (#85303) 2022-11-08 18:11:01 +00:00
nested Fix inaccuracy in nt constructor documentation + broken rendering (#89152) 2022-11-16 22:32:46 +00:00
nn Fix torch.nn.functional.gelu docstring formatting (#89061) 2022-11-18 01:57:41 +00:00
onnx Fix typos in messages under torch (#89049) 2022-11-17 04:18:14 +00:00
optim Update lr_scheduler.pyi to match lr_scheduler.py (#88818) 2022-11-11 04:02:44 +00:00
package Deprecate TypedStorage, its derived classes, and all of their public methods (#85303) 2022-11-08 18:11:01 +00:00
profiler Fix typos in messages under torch (#89049) 2022-11-17 04:18:14 +00:00
quantization [ao] making _is_activation_post_process private (#87520) 2022-11-16 21:31:57 +00:00
signal
sparse
special
testing Use pytest-flakefinder to rerun tests multiple times (#89106) 2022-11-18 00:11:44 +00:00
utils Issue 68576 prefetch factor (#88972) 2022-11-18 00:10:50 +00:00
__config__.py
__future__.py
__init__.py Fix XLASymNode.str() no str() attribute error (#89093) 2022-11-16 21:54:20 +00:00
_appdirs.py
_classes.py
_deploy.py Deprecate TypedStorage, its derived classes, and all of their public methods (#85303) 2022-11-08 18:11:01 +00:00
_jit_internal.py
_linalg_utils.py Remove cpu path from lobpcg's basis helper (#88984) 2022-11-14 17:49:30 +00:00
_lobpcg.py Fix typos used in documents under torch directory (#88300) 2022-11-02 09:38:13 +00:00
_lowrank.py
_meta_registrations.py Revert "Reland "Towards unifying symbolic and non symbolic fake tensor (#89038)" (#89143)" 2022-11-17 17:02:36 +00:00
_namedtensor_internals.py
_ops.py Revert "Reland "Towards unifying symbolic and non symbolic fake tensor (#89038)" (#89143)" 2022-11-17 17:02:36 +00:00
_python_dispatcher.py
_six.py
_sources.py
_storage_docs.py
_tensor_docs.py [primTorch] Improve narrow and narrow_copy: refs, tests, docs (#87045) 2022-11-12 15:03:50 +00:00
_tensor_str.py Disable Current Modes when printing Tensor (#88344) 2022-11-04 00:45:35 +00:00
_tensor.py [fix] allow saving python attr on Tensor and Parameter via torch.save (#81616) 2022-11-11 21:11:12 +00:00
_torch_docs.py [primTorch] Improve narrow and narrow_copy: refs, tests, docs (#87045) 2022-11-12 15:03:50 +00:00
_utils_internal.py
_utils.py [fix] allow saving python attr on Tensor and Parameter via torch.save (#81616) 2022-11-11 21:11:12 +00:00
_VF.py
_vmap_internals.py
_weights_only_unpickler.py [fix] allow saving python attr on Tensor and Parameter via torch.save (#81616) 2022-11-11 21:11:12 +00:00
abi-check.cpp
CMakeLists.txt
custom_class_detail.h
custom_class.h
extension.h
functional.py Fix typos used in documents under torch directory (#88300) 2022-11-02 09:38:13 +00:00
hub.py
library.h Make Python op registration work with torchdeploy/multipy (#87162) 2022-11-03 12:56:44 +00:00
library.py Make Python op registration work with torchdeploy/multipy (#87162) 2022-11-03 12:56:44 +00:00
overrides.py Deprecate TypedStorage, its derived classes, and all of their public methods (#85303) 2022-11-08 18:11:01 +00:00
py.typed
quasirandom.py
random.py
README.txt
return_types.py
script.h
serialization.py Fix typos in messages under torch (#89049) 2022-11-17 04:18:14 +00:00
storage.py Deprecate TypedStorage, its derived classes, and all of their public methods (#85303) 2022-11-08 18:11:01 +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.