pytorch/torch
David Berard ad6dad810e [dynamo][profiler] More verbose profiler warning (#105362)
torch.profiler.record_function and torch.profiler.profile are ignored by dynamo. In the common case, users have `record_function` in the middle of their program in order to annotate a section of the profile.

The previous error message was `Profiler will be ignored`. Users would think that profiling would be completely ignored.

Now the message will look like `Profiler function <class 'torch.autograd.profiler.record_function'> will be ignored`.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/105362
Approved by: https://github.com/yanboliang, https://github.com/aaronenyeshi
2023-07-18 04:42:13 +00:00
..
_awaits
_C [Reland] Update mypy to 1.4.1 (#105227) 2023-07-15 20:30:20 +00:00
_C_flatbuffer
_custom_op
_decomp Fix typos under _decomp directory (#105210) 2023-07-17 11:41:30 +00:00
_dispatch
_dynamo [dynamo][profiler] More verbose profiler warning (#105362) 2023-07-18 04:42:13 +00:00
_export [Reland] Update mypy to 1.4.1 (#105227) 2023-07-15 20:30:20 +00:00
_functorch Immediately compile backwards graph in AOTAutograd if dynamic shapes (#104971) 2023-07-17 15:37:17 +00:00
_higher_order_ops Revert "Add torch.ops.out_dtype (#103333)" 2023-07-14 17:59:25 +00:00
_inductor [Inductor] [FX passes] Group linear fusion (#105116) 2023-07-18 03:56:42 +00:00
_lazy
_logging Force multi-line messages to still get log format prefix (#104932) 2023-07-11 20:00:52 +00:00
_prims [Reland] Update mypy to 1.4.1 (#105227) 2023-07-15 20:30:20 +00:00
_prims_common [Reland] Update mypy to 1.4.1 (#105227) 2023-07-15 20:30:20 +00:00
_refs [Reland] Update mypy to 1.4.1 (#105227) 2023-07-15 20:30:20 +00:00
_subclasses [Inductor] [FX passes] Group linear fusion (#105116) 2023-07-18 03:56:42 +00:00
amp pre_dispatch tracing: support autocast and no_grad/enable_grad ctx managers, add a pre_dispatch_eager dynamo backend (#103024) 2023-06-29 14:17:42 +00:00
ao [Reland] Update mypy to 1.4.1 (#105227) 2023-07-15 20:30:20 +00:00
autograd
backends
compiler
contrib
cpu [core] Bring cpu device module closer to cuda's. (#103172) 2023-07-12 19:43:22 +00:00
csrc Misc visibility changes for compiled autograd (#105298) 2023-07-18 01:10:04 +00:00
cuda [Reland] Update mypy to 1.4.1 (#105227) 2023-07-15 20:30:20 +00:00
distributed [Reland] Update mypy to 1.4.1 (#105227) 2023-07-15 20:30:20 +00:00
distributions [Reland] Update mypy to 1.4.1 (#105227) 2023-07-15 20:30:20 +00:00
fft
func
futures
fx Make adding buffers more like adding parameters (#104069) 2023-07-17 17:59:05 +00:00
jit Added option to always call nn.Module global/non-global forward hooks (#104278) 2023-07-10 18:58:07 +00:00
legacy
lib
linalg [Doc] linalg.ldl_factor: render the Shape of tensor A (#99777) 2023-06-28 09:28:45 +00:00
masked [Reland] Update mypy to 1.4.1 (#105227) 2023-07-15 20:30:20 +00:00
monitor
mps [doc] Improve mps package description (#104184) 2023-06-27 15:50:36 +00:00
multiprocessing
nested
nn Make adding buffers more like adding parameters (#104069) 2023-07-17 17:59:05 +00:00
onnx [ONNX] Fix aten::cat export when arg include parameters (#105373) 2023-07-18 04:21:59 +00:00
optim [Reland] Update mypy to 1.4.1 (#105227) 2023-07-15 20:30:20 +00:00
package
profiler [Profiler][Memory] Export raw timestamped events in export_memory_timeline_raw (#105094) 2023-07-17 17:39:37 +00:00
quantization
signal [Reland] Update mypy to 1.4.1 (#105227) 2023-07-15 20:30:20 +00:00
sparse [Reland] Update mypy to 1.4.1 (#105227) 2023-07-15 20:30:20 +00:00
special
testing Make adding buffers more like adding parameters (#104069) 2023-07-17 17:59:05 +00:00
utils Prefer bound_sympy over sympy_interp (#105138) 2023-07-17 11:34:05 +00:00
__config__.py
__future__.py
__init__.py Mark bincount CUDA deterministic if weights are not given (#105244) 2023-07-18 01:16:51 +00:00
_appdirs.py
_classes.py
_compile.py [dynamo] Reland #104317 - Lazy disable_dynamo API out-of-dynamo (#104664) 2023-07-06 00:48:02 +00:00
_deploy.py
_guards.py [dynamo] Simulate torch function enablement state (#105091) 2023-07-13 17:42:20 +00:00
_jit_internal.py
_linalg_utils.py
_lobpcg.py
_lowrank.py
_meta_registrations.py [Reland] Update mypy to 1.4.1 (#105227) 2023-07-15 20:30:20 +00:00
_namedtensor_internals.py
_ops.py [dynamo] Maintainable code - Move decorators in a separate file (#105070) 2023-07-13 07:41:19 +00:00
_python_dispatcher.py
_sources.py
_storage_docs.py
_tensor_docs.py Add deterministic path for Tensor.resize_ (#104300) 2023-07-07 00:22:13 +00:00
_tensor_str.py
_tensor.py Avoid tensor creation and use scalar overload (#104264) 2023-07-12 18:11:27 +00:00
_torch_docs.py fixed torch.manual_seed note (#105175) 2023-07-13 23:43:44 +00:00
_utils_internal.py
_utils.py Make adding buffers more like adding parameters (#104069) 2023-07-17 17:59:05 +00:00
_VF.py
_vmap_internals.py
_weights_only_unpickler.py
abi-check.cpp
CMakeLists.txt
custom_class_detail.h
custom_class.h
extension.h
functional.py
hub.py
library.h
library.py
overrides.py sparse_mask: backward support for sparse lhs (take 2) (#104341) 2023-07-03 14:12:44 +00:00
py.typed
quasirandom.py
random.py Correct warning message info in fork_rng (#104525) 2023-07-04 19:08:16 +00:00
README.txt
return_types.py
script.h
serialization.py [Reland] Update mypy to 1.4.1 (#105227) 2023-07-15 20:30:20 +00:00
storage.py [Reland] Update mypy to 1.4.1 (#105227) 2023-07-15 20:30:20 +00:00
torch_version.py
types.py [Reland] Update mypy to 1.4.1 (#105227) 2023-07-15 20:30:20 +00:00
version.py.tpl

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.