pytorch/torch
davidriazati@fb.com 7fff71eb9a Fix warnings in tensor_flatten.cpp (#55956)
Summary:
Switch to use `TensorOptions` instead of deprecated `.type()` to fix compiler warnings as part of #55952
](https://our.intern.facebook.com/intern/diff/27830504/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/55956

Pulled By: driazati

Reviewed By: pritamdamania87

Differential Revision: D27830504

fbshipit-source-id: f705818ddb7d8b17c0f5383f22dc431203a194d9
2021-04-20 17:22:05 -07:00
..
_C Fix distributed.test_jit_c10d flaky tests (#56410) 2021-04-20 09:28:27 -07:00
autograd Fix typo in gradcheck.py (#56368) 2021-04-19 15:53:02 -07:00
backends [NNAPI] Initial flexible size support (#54701) 2021-04-06 13:49:43 -07:00
contrib
csrc Fix warnings in tensor_flatten.cpp (#55956) 2021-04-20 17:22:05 -07:00
cuda breakup optim, cuda documentation (#55673) 2021-04-14 12:44:00 -07:00
distributed Pytorch resolve bug around incorrect rdzv handler resolution (#56386) 2021-04-19 23:50:28 -07:00
distributions Un-ignore F403 in .flake8 (#55838) 2021-04-13 09:24:07 -07:00
fft
for_onnx Un-ignore F403 in .flake8 (#55838) 2021-04-13 09:24:07 -07:00
futures
fx Add remaining ToCs to ToC lint (#56487) 2021-04-20 10:28:47 -07:00
jit Add monkey type config for JIT (#54513) 2021-04-20 16:11:53 -07:00
legacy
lib s/AutoNonVariableTypeMode/AutoDispatchBelowAutograd/ (#56423) 2021-04-20 17:17:46 -07:00
linalg Enforce PEP263 for PyTorch python codebase (#55346) 2021-04-06 18:31:38 -07:00
multiprocessing Un-ignore F403 in .flake8 (#55838) 2021-04-13 09:24:07 -07:00
nn [SPMD] Remove _specify_ddp_gpu_num method (#56425) 2021-04-20 11:17:47 -07:00
onnx Add padding_idx argument to EmbeddingBag (#49237) 2021-04-14 09:38:01 -07:00
optim [optim] take kw-only argument for functional optim APIs (#56185) 2021-04-15 20:08:04 -07:00
package [package] make GlobGroup a public concept (#56238) 2021-04-16 13:31:48 -07:00
profiler docs: fix profiler docstring (#55750) 2021-04-13 00:23:14 -07:00
quantization [quant] added dq->op->q quantization patterns for GELU and softmax ops (#56004) 2021-04-20 13:26:15 -07:00
sparse
special [special] Add i0e (#54409) 2021-04-15 06:06:11 -07:00
testing Types for caffe2/torch/testing/_internal/common_distributed.py (#55338) 2021-04-20 16:26:53 -07:00
utils Add type hint for SequentialSampler (#56374) 2021-04-20 14:45:52 -07:00
__config__.py
__future__.py
__init__.py Update use_deterministic_algorithms docs (#55413) 2021-04-15 04:04:27 -07:00
_appdirs.py
_autograd_functions.py
_classes.py
_deploy.py
_jit_internal.py Additional annotations in fbcode/caffe2/torch/_jit_internal.py (#55855) 2021-04-15 09:47:17 -07:00
_linalg_utils.py
_lobpcg.py
_lowrank.py
_namedtensor_internals.py
_ops.py
_python_dispatcher.py
_six.py
_storage_docs.py
_tensor_docs.py Add CSR (compressed sparse row) layout for sparse tensors (#50937) 2021-04-12 10:09:12 -07:00
_tensor_str.py Add CSR (compressed sparse row) layout for sparse tensors (#50937) 2021-04-12 10:09:12 -07:00
_tensor.py Add CSR (compressed sparse row) layout for sparse tensors (#50937) 2021-04-12 10:09:12 -07:00
_torch_docs.py Fix TestTypeHints.test_doc_examples (#56388) 2021-04-19 15:27:09 -07:00
_utils_internal.py
_utils.py Merge CUDA Streams and Events (#53902) 2021-04-05 08:19:55 -07:00
_VF.py
_vmap_internals.py
abi-check.cpp
CMakeLists.txt Add minidump collection via breakpad (#55647) 2021-04-16 13:05:01 -07:00
custom_class_detail.h
custom_class.h [PyTorch][easy] Move more strings in torch::class_ (#54547) 2021-03-29 12:27:11 -07:00
deploy.h Lint trailing newlines (#54737) 2021-03-30 13:09:52 -07:00
extension.h
functional.py Add lint for unqualified noqa (#56272) 2021-04-19 13:16:18 -07:00
hub.py Fix torch.hub.load("pytorch/vision") fails to validate the master branch (#56138) 2021-04-20 09:33:25 -07:00
library.h
overrides.py Python API for Vitals (#53238) 2021-04-15 16:06:43 -07:00
py.typed
quasirandom.py Port NumPy typing testing style to PyTorch (#54234) 2021-04-15 01:25:16 -07:00
random.py Port NumPy typing testing style to PyTorch (#54234) 2021-04-15 01:25:16 -07:00
README.txt
script.h Implement public API InferenceMode and its error handling (#55008) 2021-03-31 10:48:00 -07:00
serialization.py docs: reference links to serialization.html (#54659) 2021-03-29 10:15:07 -07:00
storage.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.