pytorch/test
Lily Johnson cbb6ab6d88 [package] ignore dunder import errors (#61148)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/61148

Changes `__import__` processing to silently skip cases where the `__import__` statement cannot be parsed. Adds failed imports to a list retrievable by `PackageExporter.failed_dunder_import_list()`.

Test Plan: Imported from OSS

Reviewed By: suo

Differential Revision: D29559680

Pulled By: Lilyjjo

fbshipit-source-id: 2513d0b9ef271c85cadc3f5a013fbd8c8de80b46
2021-07-09 15:27:08 -07:00
..
ao/sparsity [sparsity] sparsifier step tests (#60107) 2021-07-07 15:28:33 -07:00
backward_compatibility [BackwardCompatibility] Remove aten::to from allow_list (#60147) 2021-06-24 22:57:57 -07:00
benchmark_utils Make torch.utils.bencmark numpy free (#60564) 2021-06-30 14:17:32 -07:00
bottleneck_test
cpp Add IMethod interface 2021-06-30 11:28:24 -07:00
cpp_api_parity ENH Adds nn.ReflectionPad3d (#59791) 2021-06-21 10:53:14 -07:00
cpp_extensions Add a test case for findDanglingImpls (#61104) 2021-07-07 13:34:16 -07:00
custom_backend [Pytorch backend delegation] Preprocess to accept (#58873) 2021-06-11 10:16:00 -07:00
custom_operator AutoDispatchBelowAutograd takes no arguments. (#56424) 2021-04-21 14:44:12 -07:00
distributed Add Model Parallel Support to ZeRO (#61370) 2021-07-09 14:27:47 -07:00
distributions Improve error message on invalid values to Distribution methods (#61056) 2021-07-06 15:44:55 -07:00
error_messages
expect [jit] Set debug name for value coming out of GetAttr nodes. (#59123) 2021-06-09 12:24:55 -07:00
fx conv2d (#61093) 2021-07-08 20:29:32 -07:00
jit [JIT] Add torch._C.ScriptList` (#52832) 2021-07-01 20:28:13 -07:00
jit_hooks
mobile [PyTorch][Edge] Tests for QuantizationFx API on lite modules (#60476) 2021-07-08 10:40:08 -07:00
onnx [ONNX] Extend chunk for dynamic chunk values (#59644) (#60247) 2021-07-08 16:29:28 -07:00
optim To add Rectified Adam Algorithm to Optimizers (#58968) 2021-06-23 18:27:57 -07:00
package [package] ignore dunder import errors (#61148) 2021-07-09 15:27:08 -07:00
quantization update internal function names that apply to both cpu and cuda (#59701) 2021-07-08 17:26:25 -07:00
scripts Disallow versionless Python shebangs (#58275) 2021-05-14 08:26:02 -07:00
test_img
typing Deprecate QR (#57745) 2021-05-10 22:56:37 -07:00
HowToWriteTestsUsingFileCheck.md
linear.py
run_test.py move CI related functions out of run_test.py (#61124) 2021-07-06 09:06:42 -07:00
simulate_nccl_errors.py
test_ao_sparsity.py [sparsity] Lambda Scheduler (#59771) 2021-07-02 21:39:38 -07:00
test_autocast.py enable torch.cpu.amp.autocast (#57386) 2021-05-20 17:48:36 -07:00
test_autograd.py Avoid complex-to-real cast warning in CopyBackward (#60021) 2021-07-07 15:28:38 -07:00
test_binary_ufuncs.py Support __rand__, __ror__ and __rxor__ (#59240) 2021-07-07 13:34:14 -07:00
test_bundled_images.py [easy] Rename fb::jpeg_decode_to_NCHW to fb::image_decode_to_NCHW (#55857) 2021-04-15 13:44:13 -07:00
test_bundled_inputs.py [Pytorch] Remove run_on_bundled_input (#58344) 2021-05-17 12:44:00 -07:00
test_complex.py
test_cpp_api_parity.py
test_cpp_extensions_aot.py
test_cpp_extensions_jit.py Fix breakpad build + add test canary (#60990) 2021-07-06 14:15:07 -07:00
test_cuda_primary_ctx.py
test_cuda.py [CUDA graphs][BC-breaking] Removes post-backward syncs on default stream (#60421) 2021-06-24 17:34:02 -07:00
test_dataloader.py fix for #60319 , forcing to use fork as start method in test/test_dat… (#60868) 2021-06-29 09:30:37 -07:00
test_datapipe.py [DataLoader] Introduce ConcatMapDataPipe functional datapipe (#61010) 2021-07-09 09:29:18 -07:00
test_determination.py Disable group group backend rpc tests from running on CI (#60407) 2021-06-23 10:58:31 -07:00
test_dispatch.py Add a test case for findDanglingImpls (#61104) 2021-07-07 13:34:16 -07:00
test_foreach.py Foreach Binary Test Refactor (#59907) 2021-07-06 11:49:38 -07:00
test_function_schema.py Add stricter check for function schemas with varargs (#56509) 2021-04-20 20:04:38 -07:00
test_functional_autograd_benchmark.py
test_futures.py remove unused type: ignore directives (#60006) 2021-06-18 07:23:31 -07:00
test_fx_experimental.py Support __rand__, __ror__ and __rxor__ (#59240) 2021-07-07 13:34:14 -07:00
test_fx.py [fx] fix subgraph API call_module warning about no owning module (#61463) 2021-07-09 15:25:44 -07:00
test_gen_backend_stubs.py remove xla-specific stuff from codegen (minus CPU fallback) (#58064) 2021-05-26 12:52:13 -07:00
test_import_time.py First step to rearrange files in tools folder (#60473) 2021-06-24 10:13:58 -07:00
test_indexing.py don't copy indices to the self device in dispatch_index (#59059) 2021-05-27 14:19:59 -07:00
test_jit_cuda_fuser.py Gelu Backward, Contribution from Kevin Stephano (#58249) 2021-05-13 19:39:39 -07:00
test_jit_disabled.py
test_jit_fuser_legacy.py
test_jit_fuser_te.py [nnc] Get rid of fuser trigger counters (#57334) 2021-06-29 22:22:15 -07:00
test_jit_fuser.py
test_jit_legacy.py
test_jit_profiling.py
test_jit_simple.py
test_jit_string.py
test_jit.py [JIT] Add torch._C.ScriptList` (#52832) 2021-07-01 20:28:13 -07:00
test_kernel_launch_checks.py Paren-matching kernel launch check without external deps (#60778) 2021-06-28 10:18:04 -07:00
test_license.py
test_linalg.py Fix dispatch keys for eigh, lu_solve (#60945) 2021-07-07 16:28:22 -07:00
test_logging.py
test_metal.py
test_mkldnn.py [BE] Improve has_bf16_support (#57408) 2021-05-03 09:11:04 -07:00
test_mobile_optimizer.py s/foward/forward/g (#58497) 2021-05-19 11:42:42 -07:00
test_model_dump.py model_dump tool for model inspection (#56868) 2021-04-28 07:33:10 -07:00
test_module_init.py ENH Adds nn.ReflectionPad3d (#59791) 2021-06-21 10:53:14 -07:00
test_multiprocessing_spawn.py
test_multiprocessing.py Fix mp serialization for integer nn.Parameter on CUDA (#56529) 2021-04-22 16:21:04 -07:00
test_namedtensor.py Stop warning on .names() access in max_pool2d and max_pool2d_backward (#60059) 2021-06-17 10:34:41 -07:00
test_namedtuple_return_api.py Implement histogram operator on CPU (#58780) 2021-06-22 10:06:04 -07:00
test_native_functions.py
test_nn.py MaxPool2d: use channels_last format for both output and indice when input is channels_last (#61245) 2021-07-07 07:50:28 -07:00
test_nnapi.py Make nnapi flatten converter accept flex inputs (#61024) 2021-07-09 15:27:02 -07:00
test_numba_integration.py
test_numpy_interop.py Add lint for unqualified type: ignore (#56290) 2021-04-21 08:07:23 -07:00
test_openmp.py
test_ops.py Fix dispatch keys for eigh, lu_solve (#60945) 2021-07-07 16:28:22 -07:00
test_optim.py Implement and benchmark a torch.optim.multi_tensor.adagrad implementation (#59155) 2021-07-07 08:08:32 -07:00
test_overrides.py Do not wrap Tensor.{grad,_base} by default (#60464) 2021-06-22 12:49:23 -07:00
test_package.py
test_profiler.py Update Kineto submodule (#58179) 2021-05-13 04:03:04 -07:00
test_pruning_op.py
test_public_bindings.py
test_python_dispatch.py Dispatch to Python via __torch_dispatch__ (#59760) 2021-06-25 11:50:32 -07:00
test_pytree.py [FX] Adds PyTree support to FX through concrete_args (#55888) 2021-05-07 04:48:35 -07:00
test_quantization.py [quant] Implemented InputWeightObserver for Linear inputs 2021-06-07 11:19:43 -07:00
test_reductions.py up the priority of numpy array comparisons in self.assertEqual (#59067) 2021-06-22 13:07:07 -07:00
test_segment_reductions.py [torch][segment_reduce] Update default values when initial value is not set (#61266) 2021-07-07 13:34:10 -07:00
test_serialization.py
test_set_default_mobile_cpu_allocator.py
test_shape_ops.py [Testing] Adding reference tests to OpInfo class (#59369) 2021-06-23 19:26:08 -07:00
test_show_pickle.py
test_sort_and_select.py topk on CUDA supports bfloat16 (#59977) 2021-06-22 23:39:24 -07:00
test_sparse_csr.py Enable sparse_csr.to_dense() for bool, float16, bfloat16 and complex (#60657) 2021-07-07 19:29:19 -07:00
test_sparse.py Test parametrization for instantiated device-specific tests (#60233) 2021-06-30 18:50:22 -07:00
test_spectral_ops.py Add PocketFFT support (#60976) 2021-06-30 16:28:20 -07:00
test_static_runtime.py
test_tensor_creation_ops.py Revert D29330585: [pytorch][PR] add BFloat16 support for arange on CPU 2021-06-24 20:57:43 -07:00
test_tensorboard.py Add lint for unqualified noqa (#56272) 2021-04-19 13:16:18 -07:00
test_tensorexpr_pybind.py [TensorExpr] More python binding cleanups (#60058) 2021-06-16 20:06:08 -07:00
test_tensorexpr.py [nnc] Get rid of fuser trigger counters (#57334) 2021-06-29 22:22:15 -07:00
test_testing.py remove UsageError in favor of ValueError (#61031) 2021-07-09 11:28:33 -07:00
test_throughput_benchmark.py
test_torch.py [ROCm] Skip test_masked_scatter_large_tensor_cuda (#61313) 2021-07-09 10:27:08 -07:00
test_type_hints.py Add lint for unqualified type: ignore (#56290) 2021-04-21 08:07:23 -07:00
test_type_info.py
test_type_promotion.py New: Initial support for sparse complex tensors constructors for CPU/CUDA (#57125) 2021-05-07 05:36:41 -07:00
test_typing.py Port NumPy typing testing style to PyTorch (#54234) 2021-04-15 01:25:16 -07:00
test_unary_ufuncs.py Fix test failures with some glibc libraries (#60450) 2021-06-23 07:49:27 -07:00
test_utils.py Fix breakpad build + add test canary (#60990) 2021-07-06 14:15:07 -07:00
test_view_ops.py Improve testing of inplace views (#59891) 2021-06-22 12:28:09 -07:00
test_vmap.py Improve testing of inplace views (#59891) 2021-06-22 12:28:09 -07:00
test_vulkan.py
test_xnnpack_integration.py