pytorch/torch
Jiewen Tan 04caef8e1d Improve IMethod::getArgumentNames to deal with empty argument names list (#62947)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62947

This diff improved IMethod::getArgumentNames to deal with empty argument names list.

Test Plan:
buck test mode/dev //caffe2/caffe2/fb/predictor:pytorch_predictor_test -- PyTorchDeployPredictor.GetEmptyArgumentNamesValidationMode
buck test mode/dev //caffe2/caffe2/fb/predictor:pytorch_predictor_test -- PyTorchDeployPredictor.GetEmptyArgumentNamesRealMode

Reviewed By: wconstab

Differential Revision: D30179974

fbshipit-source-id: c7aec35c360a73318867c5b77ebfec3affee47e3
2021-08-11 16:44:00 -07:00
..
_C rebase for autocast updates to include device_type and dtype flags (#61002) 2021-08-10 20:03:12 -07:00
ao [pruner] generalize bias hook for conv2d (#62430) 2021-08-05 09:27:17 -07:00
autograd Add docstring for saved tensors default hooks (#62361) 2021-08-10 14:59:38 -07:00
backends
contrib
cpu rebase for autocast updates to include device_type and dtype flags (#61002) 2021-08-10 20:03:12 -07:00
csrc Improve IMethod::getArgumentNames to deal with empty argument names list (#62947) 2021-08-11 16:44:00 -07:00
cuda rebase for autocast updates to include device_type and dtype flags (#61002) 2021-08-10 20:03:12 -07:00
distributed Add a _RemoteDevice structure for ShardedTensor/ShardingSpec. (#62927) 2021-08-11 11:27:32 -07:00
distributions
fft
for_onnx
futures
fx Back out "[fx] store Tracer class on Graph and GraphModule for package deserialization" (#63053) 2021-08-10 21:58:08 -07:00
jit [jit] Better checking for overload function declarations. (#59956) 2021-08-05 14:21:48 -07:00
legacy
lib
linalg Enable upper for torch.linalg.cholesky (#62434) 2021-08-09 09:28:33 -07:00
multiprocessing
nn [DDP] Dont set thread local state in reducer autograd hook. (#62996) 2021-08-10 10:50:16 -07:00
onnx Simplify hardswish ONNX export graph. (#60080) 2021-08-05 11:15:14 -07:00
optim To fix variance computation for complex Adam (#62946) 2021-08-09 17:54:43 -07:00
package
profiler [profiler][refactor] Refactor the usage of legacy profiler implementation (#61931) 2021-08-03 18:51:29 -07:00
quantization [quant][graphmode] Reference pattern support for elu (#62607) 2021-08-10 14:00:39 -07:00
sparse
special
testing [4/N] Enable opt-asan for distributed unit tests. (#62051) 2021-08-10 22:38:31 -07:00
utils Introducing DataChunk for DataPipes batching (#62768) 2021-08-06 08:38:33 -07:00
__config__.py
__future__.py
__init__.py rebase for autocast updates to include device_type and dtype flags (#61002) 2021-08-10 20:03:12 -07:00
_appdirs.py
_autograd_functions.py
_classes.py Fix issues with printing certain torch modules (#62447) 2021-08-11 09:40:41 -07:00
_deploy.py
_jit_internal.py [jit] warn if _check_overload_body fails to find source 2021-08-10 09:28:50 -07:00
_linalg_utils.py
_lobpcg.py
_lowrank.py
_namedtensor_internals.py
_ops.py Fix issues with printing certain torch modules (#62447) 2021-08-11 09:40:41 -07:00
_python_dispatcher.py
_six.py
_sources.py [jit] Better checking for overload function declarations. (#59956) 2021-08-05 14:21:48 -07:00
_storage_docs.py
_tensor.py _convert_coo_to_csr CPP and CUDA functionality (#61838) 2021-08-11 11:37:20 -07:00
_tensor_docs.py Exposes _aminmax as aminmax and makes it structured (#62401) 2021-08-03 16:10:43 -07:00
_tensor_str.py
_torch_docs.py Exposes _aminmax as aminmax and makes it structured (#62401) 2021-08-03 16:10:43 -07:00
_utils.py
_utils_internal.py [jit] Better checking for overload function declarations. (#59956) 2021-08-05 14:21:48 -07:00
_VF.py
_vmap_internals.py
abi-check.cpp
autocast_mode.py rebase for autocast updates to include device_type and dtype flags (#61002) 2021-08-10 20:03:12 -07:00
CMakeLists.txt Fix warnings (#62930) 2021-08-11 14:07:10 -07:00
custom_class.h
custom_class_detail.h
deploy.h
extension.h
functional.py
hub.py
library.h Add support for boxed functors (#62658) 2021-08-05 07:26:09 -07:00
overrides.py rebase for autocast updates to include device_type and dtype flags (#61002) 2021-08-10 20:03:12 -07:00
py.typed
quasirandom.py Update SobolEngine docstring w/ correct behavior (#62548) 2021-08-02 09:04:38 -07:00
random.py
README.txt
script.h
serialization.py [jit] Better checking for overload function declarations. (#59956) 2021-08-05 14:21:48 -07:00
storage.py
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.