pytorch/test/expect
Thiago Crepaldi 9bbe1d632e Fix ONNX ATen fallback for non-caffe2 engines
This PR introduces 3 BC changes:

First, this PR propagates `BUILD_CAFFE2` flag to `libtorch` and `libtorch_python`, which is necessary for non-caffe2 ONNX runtimes when using `ONNX_ATEN_FALLBACK` operator export type.

Second, as a complement of https://github.com/pytorch/pytorch/pull/68490, this PR refactors Caffe2's Aten ops symbolics to consider not only the `operator_export_type` (aka `ONNX_ATEN_FALLBACK`) to emit Caffe2 Aten ops, but also whether `BUILD_CAFFE2` (which is called `torch.onnx._CAFFE2_ATEN_FALLBACK` in python binding) is set.

Lastly, it renames `onnx::ATen` to `aten::ATen` for ONNX spec consistency in a BC fashion.
ONNX doesn't have `ATen` op on its spec, but PyTorch ONNX converter emits them. Non-Caffe2 backend engines would be mislead by such operator's name/domain. A non-ideal workaround would be to have Aten ops handled based on its name and ignore the (non-complaint) domain. Moreover, users could incorrectly file bugs to either ONNX or ONNX Runtime when they inspect the model and notice the presence of an unspecified ONNX operator.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/73954
Approved by: https://github.com/BowenBao, https://github.com/malfet, https://github.com/garymm, https://github.com/jiafatom
2022-04-14 23:18:45 +00:00
..
__init__.py
TestAutograd.test_function-x_grad_desc.expect simplify op name determination into a single forward pass (#64261) 2021-09-02 07:32:11 -07:00
TestAutograd.test_function-y_grad_desc.expect simplify op name determination into a single forward pass (#64261) 2021-09-02 07:32:11 -07:00
TestFXAPIBackwardCompatibility.test_class_member_back_compat-fx_backcompat_class_members.expect [FX] Make module getattr wrapper proxy buffers (#73612) 2022-03-03 04:32:49 +00:00
TestFXAPIBackwardCompatibility.test_function_back_compat-fx_backcompat_function_signatures.expect [reland] Process inputs and outputs in fx interpreter (#74637) 2022-03-24 18:32:57 +00:00
TestJit.test_cu_escaped_number.expect [JIT][write path] Make NoneType annotation_str emit NoneType instead of None (#54746) 2021-04-12 17:36:45 -07:00
TestJit.test_import_method.expect Enable backward/forward compatibility for TS runtime (#57498) 2021-05-07 15:41:45 -07:00
TestJit.test_non_ascii_string.expect
TestJit.test_pretty_printer-empty_float_list_test.expect
TestJit.test_pretty_printer-empty_int_list_test.expect
TestJit.test_pretty_printer-if_one.expect
TestJit.test_pretty_printer-if_test.expect
TestJit.test_pretty_printer-loop_use_test.expect Enable backward/forward compatibility for TS runtime (#57498) 2021-05-07 15:41:45 -07:00
TestJit.test_pretty_printer-print_weird_test.expect [JIT][write path] Make NoneType annotation_str emit NoneType instead of None (#54746) 2021-04-12 17:36:45 -07:00
TestJit.test_pretty_printer-python_op_name_test.expect
TestJit.test_pretty_printer-while_if_test.expect Enable backward/forward compatibility for TS runtime (#57498) 2021-05-07 15:41:45 -07:00
TestJit.test_pretty_printer-while_test.expect Enable backward/forward compatibility for TS runtime (#57498) 2021-05-07 15:41:45 -07:00
TestPytorchExportModes.test_aten_fallback.expect Fix ONNX ATen fallback for non-caffe2 engines 2022-04-14 23:18:45 +00:00
TestPytorchExportModes.test_onnx_aten.expect Fix ONNX ATen fallback for non-caffe2 engines 2022-04-14 23:18:45 +00:00
TestScript.test_annot_ast_mypy_fn.expect Support Union in TorchScript (#64234) 2021-09-03 06:12:24 -07:00
TestScript.test_annot_ast_mypy_method.expect Support Union in TorchScript (#64234) 2021-09-03 06:12:24 -07:00
TestScript.test_annot_ast_py3_fn.expect Support Union in TorchScript (#64234) 2021-09-03 06:12:24 -07:00
TestScript.test_annot_ast_py3_method.expect Support Union in TorchScript (#64234) 2021-09-03 06:12:24 -07:00
TestScript.test_annot_string_mypy_fn.expect Support Union in TorchScript (#64234) 2021-09-03 06:12:24 -07:00
TestScript.test_annot_string_mypy_method.expect Support Union in TorchScript (#64234) 2021-09-03 06:12:24 -07:00
TestScript.test_annot_string_py3_fn.expect Support Union in TorchScript (#64234) 2021-09-03 06:12:24 -07:00
TestScript.test_annot_string_py3_method.expect Support Union in TorchScript (#64234) 2021-09-03 06:12:24 -07:00
TestScript.test_annotated_script_fn.expect
TestScript.test_annotated_script_method.expect
TestScript.test_format-stdout.expect
TestScript.test_listconstruct_erasure.expect Fix ONNX ATen fallback for non-caffe2 engines 2022-04-14 23:18:45 +00:00
TestScript.test_parser_type_annotations_comment.expect
TestScript.test_parser_type_annotations.expect
TestScript.test_print-stdout.expect
TestScript.test_python_frontend_py2.expect
TestScript.test_python_frontend_py3.expect
TestScript.test_python_frontend.expect
TestScript.test_string_print-stdout.expect
TestScript.test_torch_dot_tensor_annotation.expect
TestSparseCPU.test_print_coalesced_cpu_float64.expect Eliminate global usage of torch.set_default_dtype in sparse test (#56393) 2021-04-27 15:23:14 -07:00
TestSparseCPU.test_print_uncoalesced_cpu_float64.expect Eliminate global usage of torch.set_default_dtype in sparse test (#56393) 2021-04-27 15:23:14 -07:00
TestSparseCSRCPU.test_sparse_csr_print_cpu.expect CUDA support in the CSR layout: constructors (#59010) 2021-05-26 16:39:43 -07:00
TestSparseCSRCUDA.test_sparse_csr_print_cuda.expect CUDA support in the CSR layout: constructors (#59010) 2021-05-26 16:39:43 -07:00
TestSparseCUDA.test_print_coalesced_cuda_float64.expect Eliminate global usage of torch.set_default_dtype in sparse test (#56393) 2021-04-27 15:23:14 -07:00
TestSparseCUDA.test_print_uncoalesced_cuda_float64.expect Eliminate global usage of torch.set_default_dtype in sparse test (#56393) 2021-04-27 15:23:14 -07:00
TestTensorBoard.test_audio.expect
TestTensorBoard.test_caffe2_simple_cnnmodel.expect
TestTensorBoard.test_caffe2_simple_model.expect
TestTensorBoard.test_histogram_auto.expect
TestTensorBoard.test_histogram_doane.expect
TestTensorBoard.test_histogram_fd.expect
TestTensorBoard.test_hparams_bool.expect
TestTensorBoard.test_hparams_number.expect
TestTensorBoard.test_hparams_string.expect
TestTensorBoard.test_image_with_3_channel_batched.expect
TestTensorBoard.test_image_with_boxes.expect
TestTensorBoard.test_image_with_one_channel_batched.expect
TestTensorBoard.test_image_with_one_channel.expect
TestTensorBoard.test_image_without_channel.expect
TestTensorBoard.test_mesh.expect
TestTensorBoard.test_nested_nn_squential.expect Remove some unnecessary python functional wrappers (#61608) 2022-02-01 16:59:26 +00:00
TestTensorBoard.test_pr_curve_raw.expect
TestTensorBoard.test_pr_curve.expect
TestTensorBoard.test_pytorch_graph.expect [jit] Set debug name for value coming out of GetAttr nodes. (#59123) 2021-06-09 12:24:55 -07:00
TestTensorBoard.test_scalar_new_style.expect
TestTensorBoard.test_text.expect
TestTensorBoard.test_video.expect
TestTorch.test_is_nonzero-empty.expect
TestTorch.test_is_nonzero-multiple.expect
TestTorch.test_print-non_contiguous.expect