pytorch/test
tmanlaibaatar fee585b5a3 Correctly mark unannotated NamedTuple field to be inferred TensorType (#46969)
Summary:
If there is no annotation given, we want to show users that the type is inferred

Pull Request resolved: https://github.com/pytorch/pytorch/pull/46969

Test Plan:
Added a new test case that throws an error with the expected error message

Fixes https://github.com/pytorch/pytorch/issues/46326

Reviewed By: ZolotukhinM

Differential Revision: D24614450

Pulled By: gmagogsfm

fbshipit-source-id: dec555a53bfaa9cdefd3b21b5142f5e522847504
2020-10-29 12:07:40 -07:00
..
backward_compatibility Fix backcompat in master following revert (#46984) 2020-10-28 10:32:14 -07:00
benchmark_utils More Timer refinement (#46023) 2020-10-15 16:32:53 -07:00
bottleneck_test
cpp [RFC] Add OperatorHandle overload to the RecordFunction::before() method (#46401) 2020-10-28 22:38:26 -07:00
cpp_api_parity Support tuple inputs in NN Module test (#44853) 2020-09-28 22:05:05 -07:00
cpp_extensions Add barrier() at the end of init_process_group and new_group. (#45181) 2020-09-25 15:46:59 -07:00
custom_backend [JIT] Modify to_backend API so that it accepts wrapped modules (#43612) 2020-09-28 17:17:01 -07:00
custom_operator
distributed Disable test_joing_running_workers for TSAN. (#46966) 2020-10-28 19:28:04 -07:00
distributions Support pytest for distribution testing (#45648) 2020-10-13 10:56:50 -07:00
error_messages
expect
fx [FX] Track use nodes in Node (#45775) 2020-10-07 00:15:04 -07:00
jit Throw an exception in the constructor of torchscript serialization to avoid double-exception (#44266) 2020-10-28 22:41:19 -07:00
mobile Add error messages and workaround for RET failure of containers with a torch class type (#46543) 2020-10-26 10:46:07 -07:00
namespace_b torch.package - a way to package models and code (#45015) 2020-09-22 21:21:21 -07:00
onnx Replace map(lambda constructs (#46462) 2020-10-22 09:50:22 -07:00
optim
package_a torch.package - a way to package models and code (#45015) 2020-09-22 21:21:21 -07:00
quantization [quant][graphmode][fx] Remove inplace option for convert_fx (#46955) 2020-10-28 21:07:19 -07:00
scripts
test_img
type_hint_tests
HowToWriteTestsUsingFileCheck.md
module_a.py torch.package - a way to package models and code (#45015) 2020-09-22 21:21:21 -07:00
print_test_stats.py add workflow ID to report tags (#46725) 2020-10-23 12:10:54 -07:00
run_test.py fix minor bug, message variable does not exist (#46777) 2020-10-23 14:20:23 -07:00
simulate_nccl_errors.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
test_autograd.py Implement torch.igamma (#46183) 2020-10-29 11:40:18 -07:00
test_bundled_images.py
test_bundled_inputs.py
test_complex.py
test_cpp_api_parity.py Always use NewModuleTest instead of ModuleTest. (#44745) 2020-09-17 07:36:39 -07:00
test_cpp_extensions_aot.py Fix exception chaining in test/ (#44193) 2020-09-14 14:20:16 -07:00
test_cpp_extensions_jit.py
test_cuda.py remove event not ready assertion from TestCuda.test_copy_non_blocking (#46857) 2020-10-27 14:21:40 -07:00
test_cuda_primary_ctx.py
test_dataloader.py Mark top 3 slowest tests as slow (#46068) 2020-10-08 21:10:03 -07:00
test_determination.py
test_dispatch.py [WIP] Move catchAll to Math (#45939) 2020-10-16 16:17:16 -07:00
test_expecttest.py
test_foreach.py [WIP] Push rocm to slow path for foreach APIs (#46733) 2020-10-23 10:33:41 -07:00
test_function_schema.py Stricter backward compatibility check (#45773) 2020-10-06 01:28:48 -07:00
test_functional_autograd_benchmark.py
test_futures.py fix #45552 - adding add_done_callback(fn) to torch.futures.Future (#45675) 2020-10-13 07:47:36 -07:00
test_fx.py [FX] Fix corner case in name sanitization (#46958) 2020-10-28 10:22:33 -07:00
test_fx_experimental.py add support for different memory sizes on size_based_partition (#46919) 2020-10-28 21:11:41 -07:00
test_indexing.py
test_jit.py Correctly mark unannotated NamedTuple field to be inferred TensorType (#46969) 2020-10-29 12:07:40 -07:00
test_jit_cuda_fuser.py [nvFuser] Switching to CudaFusionGuard from BailOut for nvfuser - update 2 (#46452) 2020-10-19 15:44:31 -07:00
test_jit_disabled.py
test_jit_fuser.py Adjust TF32 tests (#44240) 2020-09-24 10:25:58 -07:00
test_jit_fuser_legacy.py Rename jobs and cli switches for testing GraphExecutor configurations to something a little bit more sensical. (#45715) 2020-10-05 11:43:28 -07:00
test_jit_fuser_te.py [pytorch][tensorexpr] Promote integer arguments to sin/cos/tan to float (#46776) 2020-10-23 17:32:54 -07:00
test_jit_legacy.py Rename jobs and cli switches for testing GraphExecutor configurations to something a little bit more sensical. (#45715) 2020-10-05 11:43:28 -07:00
test_jit_profiling.py Rename jobs and cli switches for testing GraphExecutor configurations to something a little bit more sensical. (#45715) 2020-10-05 11:43:28 -07:00
test_jit_py3.py [JIT] Add API for ignoring arbitrary module attributes (#45262) 2020-10-06 18:02:06 -07:00
test_jit_simple.py Rename jobs and cli switches for testing GraphExecutor configurations to something a little bit more sensical. (#45715) 2020-10-05 11:43:28 -07:00
test_jit_string.py
test_kernel_launch_checks.py Ensure kernel launches are checked (#46474) 2020-10-28 09:27:48 -07:00
test_linalg.py Added torch.linalg.tensorsolve (#46142) 2020-10-29 10:29:28 -07:00
test_logging.py
test_metal.py [Metal] Add the Python binding for optimize_for_mobile (#46456) 2020-10-17 10:26:25 -07:00
test_mkldnn.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
test_mobile_optimizer.py Make add_relu an internal function (#46676) 2020-10-22 18:08:15 -07:00
test_multiprocessing.py
test_multiprocessing_spawn.py Add exception classification to torch.multiprocessing.spawn (#45174) 2020-10-09 12:59:41 -07:00
test_namedtensor.py Fixed median nan propagation and implemented nanmedian (#45847) 2020-10-08 11:20:21 -07:00
test_namedtuple_return_api.py Fixed median nan propagation and implemented nanmedian (#45847) 2020-10-08 11:20:21 -07:00
test_native_functions.py Refactor scalar list APIs to use overloads (#45673) 2020-10-19 09:28:49 -07:00
test_nn.py Disable softmax tests on ROCm (#46793) 2020-10-29 08:05:36 -07:00
test_numba_integration.py
test_op_aliases.py Migrate addr from the TH to Aten (CPU) (#44364) 2020-09-25 01:18:09 -07:00
test_openmp.py
test_ops.py Update backward formulas (Re #44444) (#46275) 2020-10-25 19:40:59 -07:00
test_optim.py Replace list(map(...)) constructs by list comprehensions (#46461) 2020-10-19 18:42:49 -07:00
test_overrides.py Fix incorrect signatures in get_testing_overrides, and add test for incorrect signatures (#45983) 2020-10-15 07:48:20 -07:00
test_package.py Fix version comparisons for Python 3.6, 3.10 and 4 (#32389) 2020-10-21 11:52:50 -07:00
test_profiler.py Source code level attribution in profiler (#43898) 2020-09-30 00:57:35 -07:00
test_pruning_op.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
test_pytree.py Implement _broadcast_to_and_flatten(pytree, spec) (#46288) 2020-10-20 07:52:14 -07:00
test_quantization.py [quant][graphmode][fx] Support sigmoid/hardsigmoid/tanh in qat (#46738) (#46871) 2020-10-26 23:52:07 -07:00
test_serialization.py fix test_serialization not working with Windows. (#46120) 2020-10-12 15:18:46 -07:00
test_show_pickle.py
test_sparse.py Fixes bug in sspaddmm (#45113) (#45963) 2020-10-15 16:50:16 -07:00
test_spectral_ops.py Mark parts of spectral tests as slow (#46509) 2020-10-19 10:11:46 -07:00
test_static_runtime.py [StaticRuntime] Implement StaticRuntime::benchmark (#45639) 2020-10-06 20:54:43 -07:00
test_tensor_creation_ops.py Fix negative column numbers for the torch.eye (#46841) 2020-10-28 22:29:25 -07:00
test_tensorboard.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
test_tensorexpr.py [TensorExpr] Re-enable test for torch.cat, add a test for torch.cat being a single node in a fusion group. (#46447) 2020-10-16 20:26:48 -07:00
test_throughput_benchmark.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
test_torch.py Implement torch.igamma (#46183) 2020-10-29 11:40:18 -07:00
test_type_hints.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
test_type_info.py
test_type_promotion.py [numpy] torch.cos, torch.tan : promote integer inputs to float (#46706) 2020-10-28 22:02:52 -07:00
test_unary_ufuncs.py [numpy] torch.cos, torch.tan : promote integer inputs to float (#46706) 2020-10-28 22:02:52 -07:00
test_utils.py More Timer refinement (#46023) 2020-10-15 16:32:53 -07:00
test_vmap.py vmap fallback: gracefully error out when vmap over dim of size 0 (#46846) 2020-10-26 15:32:22 -07:00
test_vulkan.py
test_xnnpack_integration.py Mark top 3 slowest tests as slow (#46068) 2020-10-08 21:10:03 -07:00