Skip to content

fix _unsafe_view composite compliance#77127

Closed
bdhirsh wants to merge 3 commits intogh/bdhirsh/225/basefrom
gh/bdhirsh/225/head
Closed

fix _unsafe_view composite compliance#77127
bdhirsh wants to merge 3 commits intogh/bdhirsh/225/basefrom
gh/bdhirsh/225/head

Conversation

@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented May 10, 2022

🔗 Helpful links

❌ 5 New Failures, 5 Flaky Failures

As of commit b4be12a (more details on the Dr. CI page):

Expand to see more

🕵️ 5 new failures recognized by patterns

The following CI failures do not appear to be due to upstream breakages

See GitHub Actions build pull / linux-xenial-py3.7-clang7-asan / test (default, 5, 5, linux.2xlarge) (1/5)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

2022-05-11T15:34:30.1395974Z RuntimeError: test_functionalization failed!
2022-05-11T15:34:30.0559712Z     #183 0x5571cbedf18b in _Py_UnixMain /home/builder/tkoch/workspace/python_1648536129212/work/Modules/main.c:3495
2022-05-11T15:34:30.1048243Z     #184 0x7f092cf6a83f in __libc_start_main /build/glibc-S7Ft5T/glibc-2.23/csu/../csu/libc-start.c:291
2022-05-11T15:34:30.1048802Z     #185 0x5571cbe84039 in _start (/opt/conda/bin/python3.7+0x1d8039)
2022-05-11T15:34:30.1049062Z 
2022-05-11T15:34:30.1049650Z SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /var/lib/jenkins/workspace/third_party/fbgemm/src/QuantUtils.cc:56:50 in 
2022-05-11T15:34:30.1386703Z Traceback (most recent call last):
2022-05-11T15:34:30.1387008Z   File "test/run_test.py", line 1072, in <module>
2022-05-11T15:34:30.1391434Z     main()
2022-05-11T15:34:30.1391732Z   File "test/run_test.py", line 1050, in main
2022-05-11T15:34:30.1395411Z     raise RuntimeError(err_message)
2022-05-11T15:34:30.1395974Z RuntimeError: test_functionalization failed!
2022-05-11T15:34:30.6274536Z + cleanup
2022-05-11T15:34:30.6274904Z + retcode=1
2022-05-11T15:34:30.6275175Z + set +x
2022-05-11T15:34:30.6312662Z ##[error]Process completed with exit code 1.
2022-05-11T15:34:30.6385145Z ##[group]Run pytorch/pytorch/.github/actions/get-workflow-job-id@master
2022-05-11T15:34:30.6385416Z with:
2022-05-11T15:34:30.6385857Z   github-token: ***
2022-05-11T15:34:30.6386029Z env:
2022-05-11T15:34:30.6386194Z   IN_CI: 1
2022-05-11T15:34:30.6386366Z   IS_GHA: 1

See GitHub Actions build pull / linux-xenial-py3.7-clang7-asan / test (default, 2, 5, linux.2xlarge) (2/5)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

2022-05-11T15:33:15.9885577Z SUMMARY: Undefined.../jenkins/workspace/aten/src/ATen/Utils.cpp:20:3 in
2022-05-11T15:33:15.9383660Z     #10 0x55d773b49c81 in run_mod /home/builder/tkoch/workspace/python_1648536129212/work/Python/pythonrun.c:1037
2022-05-11T15:33:15.9384307Z     #11 0x55d773b54c69 in PyRun_StringFlags /home/builder/tkoch/workspace/python_1648536129212/work/Python/pythonrun.c:961
2022-05-11T15:33:15.9384909Z     #12 0x55d773b54ccb in PyRun_SimpleStringFlags /home/builder/tkoch/workspace/python_1648536129212/work/Python/pythonrun.c:455
2022-05-11T15:33:15.9386173Z     #13 0x55d773b54dc8 in pymain_run_command /home/builder/tkoch/workspace/python_1648536129212/work/Modules/main.c:420
2022-05-11T15:33:15.9386659Z     #14 0x55d773b54dc8 in pymain_run_python /home/builder/tkoch/workspace/python_1648536129212/work/Modules/main.c:2907
2022-05-11T15:33:15.9387093Z     #15 0x55d773b54dc8 in pymain_main /home/builder/tkoch/workspace/python_1648536129212/work/Modules/main.c:3460
2022-05-11T15:33:15.9388112Z     #16 0x55d773b5518b in _Py_UnixMain /home/builder/tkoch/workspace/python_1648536129212/work/Modules/main.c:3495
2022-05-11T15:33:15.9884713Z     #17 0x7f8df687f83f in __libc_start_main /build/glibc-S7Ft5T/glibc-2.23/csu/../csu/libc-start.c:291
2022-05-11T15:33:15.9885099Z     #18 0x55d773afa039 in _start (/opt/conda/bin/python3.7+0x1d8039)
2022-05-11T15:33:15.9885261Z 
2022-05-11T15:33:15.9885577Z SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /var/lib/jenkins/workspace/aten/src/ATen/Utils.cpp:20:3 in 
2022-05-11T15:33:16.0117434Z + retcode=1
2022-05-11T15:33:16.0117851Z + set -e
2022-05-11T15:33:16.0118095Z + return 1
2022-05-11T15:33:16.0120923Z + [[ linux-xenial-py3.7-clang7-asan-default == *-NO_AVX-* ]]
2022-05-11T15:33:16.0121427Z + [[ default == \n\o\g\p\u\_\N\O\_\A\V\X ]]
2022-05-11T15:33:16.0121814Z + [[ linux-xenial-py3.7-clang7-asan-default == *-NO_AVX2-* ]]
2022-05-11T15:33:16.0122091Z + [[ default == \n\o\g\p\u\_\N\O\_\A\V\X\2 ]]
2022-05-11T15:33:16.0122442Z + [[ linux-xenial-py3.7-clang7-asan-default == *-NO_AVX512-* ]]
2022-05-11T15:33:16.0122757Z + [[ default == \n\o\g\p\u\_\N\O\_\A\V\X\5\1\2 ]]
2022-05-11T15:33:16.0124359Z + [[ linux-xenial-py3.7-clang7-asan-default == *tbb* ]]

See GitHub Actions build pull / pytorch-xla-linux-bionic-py3.7-clang8 / test (xla, 1, 1, linux.2xlarge) (3/5)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

2022-05-11T16:44:40.5524749Z /var/lib/jenkins/w... virtual member functions can be marked 'override'
2022-05-11T16:44:40.5518993Z In file included from /var/lib/jenkins/workspace/xla/torch_xla/csrc/aten_xla_bridge.cpp:11:
2022-05-11T16:44:40.5519856Z /var/lib/jenkins/workspace/xla/torch_xla/csrc/tensor_impl.h:33:40: error: only virtual member functions can be marked 'override'
2022-05-11T16:44:40.5520414Z   at::IntArrayRef sizes_custom() const override;
2022-05-11T16:44:40.5520746Z                                        ^~~~~~~~
2022-05-11T16:44:40.5521434Z /var/lib/jenkins/workspace/xla/torch_xla/csrc/tensor_impl.h:34:42: error: only virtual member functions can be marked 'override'
2022-05-11T16:44:40.5521979Z   at::IntArrayRef strides_custom() const override;
2022-05-11T16:44:40.5522340Z                                          ^~~~~~~~
2022-05-11T16:44:40.5523182Z /var/lib/jenkins/workspace/xla/torch_xla/csrc/tensor_impl.h:36:30: error: only virtual member functions can be marked 'override'
2022-05-11T16:44:40.5523780Z   int64_t dim_custom() const override;
2022-05-11T16:44:40.5524077Z                              ^~~~~~~~
2022-05-11T16:44:40.5524749Z /var/lib/jenkins/workspace/xla/torch_xla/csrc/tensor_impl.h:38:32: error: only virtual member functions can be marked 'override'
2022-05-11T16:44:40.5525233Z   int64_t numel_custom() const override;
2022-05-11T16:44:40.5525550Z                                ^~~~~~~~
2022-05-11T16:44:40.5525833Z 4 errors generated.
2022-05-11T16:45:07.5488562Z [10/179] clang++-8 -MMD -MF /var/lib/jenkins/workspace/xla/build/temp.linux-x86_64-3.7/torch_xla/csrc/RegisterXLA.o.d -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -D_GLIBCXX_USE_CXX11_ABI=1 -fPIC -I/var/lib/jenkins/workspace/xla -I/var/lib/jenkins/workspace/xla/third_party/tensorflow/bazel-tensorflow -I/var/lib/jenkins/workspace/xla/third_party/tensorflow/bazel-bin -I/var/lib/jenkins/workspace/xla/third_party/tensorflow/bazel-tensorflow/external/protobuf_archive/src -I/var/lib/jenkins/workspace/xla/third_party/tensorflow/bazel-tensorflow/external/com_google_protobuf/src -I/var/lib/jenkins/workspace/xla/third_party/tensorflow/bazel-tensorflow/external/eigen_archive -I/var/lib/jenkins/workspace/xla/third_party/tensorflow/bazel-tensorflow/external/com_google_absl -I/var/lib/jenkins/workspace -I/var/lib/jenkins/workspace/torch/csrc -I/var/lib/jenkins/workspace/torch/lib/tmp_install/include -I/opt/conda/lib/python3.7/site-packages/torch/include -I/opt/conda/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/opt/conda/lib/python3.7/site-packages/torch/include/TH -I/opt/conda/lib/python3.7/site-packages/torch/include/THC -I/opt/conda/include/python3.7m -c -c /var/lib/jenkins/workspace/xla/torch_xla/csrc/RegisterXLA.cpp -o /var/lib/jenkins/workspace/xla/build/temp.linux-x86_64-3.7/torch_xla/csrc/RegisterXLA.o -std=c++14 -Wno-sign-compare -Wno-deprecated-declarations -Wno-return-type -Wno-macro-redefined -Wno-return-std-move -DNDEBUG -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_clang"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1002"' -DTORCH_EXTENSION_NAME=_XLAC -D_GLIBCXX_USE_CXX11_ABI=1
2022-05-11T16:45:07.5491164Z /var/lib/jenkins/workspace/xla/torch_xla/csrc/RegisterXLA.cpp:63:6: warning: unused function 'resize_out' [-Wunused-function]
2022-05-11T16:45:07.5491574Z void resize_out(const Tensor &out, IntArrayRef sizes, IntArrayRef strides, const TensorOptions &options) {
2022-05-11T16:45:07.5491824Z      ^
2022-05-11T16:45:07.5492215Z /var/lib/jenkins/workspace/xla/torch_xla/csrc/RegisterXLA.cpp:82:6: warning: unused function 'check_inplace' [-Wunused-function]
2022-05-11T16:45:07.5492600Z void check_inplace(const Tensor &self, IntArrayRef sizes, const TensorOptions &options) {
2022-05-11T16:45:07.5492841Z      ^

See GitHub Actions build pull / linux-xenial-py3.7-clang7-onnx / test (default, 1, 2, linux.2xlarge) (4/5)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

2022-05-11T16:20:34.3357988Z RuntimeError: Unab...r) (compile in debug mode for type information)
2022-05-11T16:20:34.3354241Z ――――――――――――――― TestUtilityFuns_opset15.test_constant_fold_sqrt ――――――――――――――――
2022-05-11T16:20:34.3354705Z Traceback (most recent call last):
2022-05-11T16:20:34.3355071Z   File "/var/lib/jenkins/workspace/test/onnx/test_utility_funs.py", line 618, in test_constant_fold_sqrt
2022-05-11T16:20:34.3355596Z     Module(), (x,), input_names=["x"], dynamic_axes={"x": [0, 1]}
2022-05-11T16:20:34.3355909Z   File "/var/lib/jenkins/workspace/test/onnx/test_utility_funs.py", line 71, in _model_to_graph
2022-05-11T16:20:34.3356188Z     dynamic_axes=dynamic_axes,
2022-05-11T16:20:34.3356582Z   File "/opt/conda/lib/python3.7/site-packages/torch/onnx/utils.py", line 732, in _model_to_graph
2022-05-11T16:20:34.3356842Z     module=module,
2022-05-11T16:20:34.3357275Z   File "/opt/conda/lib/python3.7/site-packages/torch/onnx/utils.py", line 322, in _optimize_graph
2022-05-11T16:20:34.3357559Z     torch._C._jit_pass_lint(graph)
2022-05-11T16:20:34.3357988Z RuntimeError: Unable to cast from non-held to held instance (T& to Holder<T>) (compile in debug mode for type information)
2022-05-11T16:20:34.3358213Z 
2022-05-11T16:20:34.3358218Z 
2022-05-11T16:20:34.3360278Z 
2022-05-11T16:20:34.3650414Z  �[36mtest/onnx/test_utility_funs.py�[0m::TestUtilityFuns_opset15.test_constant_fold_sqrt�[0m �[31m⨯�[0m�[31m45% �[0m�[40m�[32m█�[0m�[40m�[32m█�[0m�[40m�[31m█�[0m�[40m�[31m█�[0m�[40m�[31m▌�[0m�[40m�[31m     �[0m
2022-05-11T16:20:34.3650707Z 
2022-05-11T16:20:34.3650973Z ――――――――― TestUtilityFuns_opset15.test_constant_fold_squeeze_with_axes ―――――――――
2022-05-11T16:20:34.3651261Z Traceback (most recent call last):
2022-05-11T16:20:34.3651585Z   File "/var/lib/jenkins/workspace/test/onnx/test_utility_funs.py", line 372, in test_constant_fold_squeeze_with_axes
2022-05-11T16:20:34.3651937Z     SqueezeAxesModule(), (x,), input_names=["x"], dynamic_axes={"x": [0, 1]}
2022-05-11T16:20:34.3652274Z   File "/var/lib/jenkins/workspace/test/onnx/test_utility_funs.py", line 71, in _model_to_graph

See GitHub Actions build pull / linux-xenial-py3.7-clang7-onnx / test (default, 2, 2, linux.2xlarge) (5/5)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

2022-05-11T15:38:46.4064481Z ##[error]Process completed with exit code 1.
2022-05-11T15:38:46.0380955Z SKIPPED [1] test/onnx/test_pytorch_common.py:68: Unsupported opset_version: 10 > 8
2022-05-11T15:38:46.0381299Z SKIPPED [1] test/onnx/test_pytorch_common.py:53: Failing, see https://github.com/pytorch/pytorch/issues/66528
2022-05-11T15:38:46.0381729Z SKIPPED [1] test/onnx/test_pytorch_common.py:53: Unstable loading pretrained quantized mobilenet v3: https://github.com/pytorch/vision/issues/5303
2022-05-11T15:38:46.0382114Z SKIPPED [3] test/onnx/test_pytorch_common.py:68: Unsupported opset_version: 10 < 11
2022-05-11T15:38:46.0382517Z SKIPPED [1] test/onnx/test_pytorch_common.py:53: Bug in ORT, skip test until rel-1.11.
2022-05-11T15:38:46.0382829Z SKIPPED [1] test/onnx/test_pytorch_common.py:112: Unsupported opset_version: 10 < 11
2022-05-11T15:38:46.0383187Z FAILED test/onnx/test_pytorch_onnx_onnxruntime.py::TestONNXRuntime_opset10::test_arange_with_floats_out
2022-05-11T15:38:46.0383557Z FAILED test/onnx/test_pytorch_onnx_onnxruntime.py::TestONNXRuntime_opset10::test_dynamic_arange_out
2022-05-11T15:38:46.0383916Z FAILED test/onnx/test_pytorch_onnx_onnxruntime.py::TestONNXRuntime_opset10::test_dynamic_arange_start_out
2022-05-11T15:38:46.0384395Z �[31m==== �[31m�[1m3 failed�[0m, �[32m611 passed�[0m, �[33m190 skipped�[0m, �[33m1461 warnings�[0m�[31m in 204.72s (0:03:24)�[0m�[31m =====�[0m
2022-05-11T15:38:46.4064481Z ##[error]Process completed with exit code 1.
2022-05-11T15:38:46.4226216Z ##[group]Run pytorch/pytorch/.github/actions/get-workflow-job-id@master
2022-05-11T15:38:46.4226506Z with:
2022-05-11T15:38:46.4226943Z   github-token: ***
2022-05-11T15:38:46.4227120Z env:
2022-05-11T15:38:46.4227264Z   IN_CI: 1
2022-05-11T15:38:46.4227425Z   IS_GHA: 1
2022-05-11T15:38:46.4227608Z   GIT_DEFAULT_BRANCH: master
2022-05-11T15:38:46.4227785Z ##[endgroup]
2022-05-11T15:38:46.4297000Z ##[group]Run nick-fields/retry@71062288b76e2b6214ebde0e673ce0de1755740a
2022-05-11T15:38:46.4297231Z with:

❄️ 5 failures tentatively classified as flaky

but reruns have not yet been triggered to confirm:

See GitHub Actions build pull / linux-xenial-cuda11.3-py3.7-gcc7 / test (default, 2, 4, linux.4xlarge.nvidia.gpu) (1/5)

Step: "Test" (full log | diagnosis details | 🔁 rerun) ❄️

2022-05-11T17:16:53.5149335Z .jenkins/pytorch/t...--gtest_output=xml:$TEST_REPORTS_DIR/test_lazy.xml
2022-05-11T17:16:52.0234250Z �[0;32m[       OK ] �[mLazyOpsTest.TestOnesLike (0 ms)
2022-05-11T17:16:52.0234689Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestOnesLikeOptions
2022-05-11T17:16:52.0236739Z �[0;32m[       OK ] �[mLazyOpsTest.TestOnesLikeOptions (0 ms)
2022-05-11T17:16:52.0237159Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestFull
2022-05-11T17:16:52.0246181Z �[0;32m[       OK ] �[mLazyOpsTest.TestFull (0 ms)
2022-05-11T17:16:52.0246582Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestFullLike
2022-05-11T17:16:52.0249263Z �[0;32m[       OK ] �[mLazyOpsTest.TestFullLike (0 ms)
2022-05-11T17:16:52.0249683Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestFullLikeOptions
2022-05-11T17:16:52.0252133Z �[0;32m[       OK ] �[mLazyOpsTest.TestFullLikeOptions (0 ms)
2022-05-11T17:16:52.0252558Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestARange
2022-05-11T17:16:53.5149335Z .jenkins/pytorch/test.sh: line 255:  6156 Segmentation fault      (core dumped) LTC_TS_CUDA=1 "$TORCH_BIN_DIR"/test_lazy --gtest_output=xml:$TEST_REPORTS_DIR/test_lazy.xml
2022-05-11T17:16:53.5149831Z + cleanup
2022-05-11T17:16:53.5150064Z + retcode=139
2022-05-11T17:16:53.5150277Z + set +x
2022-05-11T17:16:53.5193005Z ##[error]Process completed with exit code 139.
2022-05-11T17:16:53.5239986Z ##[group]Run pytorch/pytorch/.github/actions/get-workflow-job-id@master
2022-05-11T17:16:53.5240364Z with:
2022-05-11T17:16:53.5240926Z   github-token: ***
2022-05-11T17:16:53.5241155Z env:
2022-05-11T17:16:53.5241378Z   IN_CI: 1
2022-05-11T17:16:53.5241603Z   IS_GHA: 1

See GitHub Actions build pull / linux-xenial-py3.7-gcc7 / test (default, 2, 2, linux.2xlarge) (2/5)

Step: "Test" (full log | diagnosis details | 🔁 rerun) ❄️

2022-05-11T16:12:27.5718660Z .jenkins/pytorch/t...--gtest_output=xml:$TEST_REPORTS_DIR/test_lazy.xml
2022-05-11T16:12:27.3472934Z �[0;32m[       OK ] �[mLazyOpsTest.TestOnesLike (0 ms)
2022-05-11T16:12:27.3473316Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestOnesLikeOptions
2022-05-11T16:12:27.3473699Z �[0;32m[       OK ] �[mLazyOpsTest.TestOnesLikeOptions (0 ms)
2022-05-11T16:12:27.3474086Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestFull
2022-05-11T16:12:27.3479141Z �[0;32m[       OK ] �[mLazyOpsTest.TestFull (0 ms)
2022-05-11T16:12:27.3479485Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestFullLike
2022-05-11T16:12:27.3480469Z �[0;32m[       OK ] �[mLazyOpsTest.TestFullLike (0 ms)
2022-05-11T16:12:27.3480869Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestFullLikeOptions
2022-05-11T16:12:27.3481668Z �[0;32m[       OK ] �[mLazyOpsTest.TestFullLikeOptions (0 ms)
2022-05-11T16:12:27.3482091Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestARange
2022-05-11T16:12:27.5718660Z .jenkins/pytorch/test.sh: line 255:  4652 Segmentation fault      (core dumped) "$TORCH_BIN_DIR"/test_lazy --gtest_output=xml:$TEST_REPORTS_DIR/test_lazy.xml
2022-05-11T16:12:27.5719099Z + cleanup
2022-05-11T16:12:27.5719350Z + retcode=139
2022-05-11T16:12:27.5719515Z + set +x
2022-05-11T16:12:27.5752512Z ##[error]Process completed with exit code 139.
2022-05-11T16:12:27.5799911Z ##[group]Run pytorch/pytorch/.github/actions/get-workflow-job-id@master
2022-05-11T16:12:27.5800159Z with:
2022-05-11T16:12:27.5800586Z   github-token: ***
2022-05-11T16:12:27.5800760Z env:
2022-05-11T16:12:27.5800901Z   IN_CI: 1
2022-05-11T16:12:27.5801061Z   IS_GHA: 1

See GitHub Actions build pull / linux-xenial-py3.7-gcc5.4 / test (default, 2, 2, linux.2xlarge) (3/5)

Step: "Test" (full log | diagnosis details | 🔁 rerun) ❄️

2022-05-11T16:04:54.3084906Z .jenkins/pytorch/t...--gtest_output=xml:$TEST_REPORTS_DIR/test_lazy.xml
2022-05-11T16:04:54.1561377Z �[0;32m[       OK ] �[mLazyOpsTest.TestOnesLike (0 ms)
2022-05-11T16:04:54.1561702Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestOnesLikeOptions
2022-05-11T16:04:54.1563116Z �[0;32m[       OK ] �[mLazyOpsTest.TestOnesLikeOptions (0 ms)
2022-05-11T16:04:54.1563477Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestFull
2022-05-11T16:04:54.1567988Z �[0;32m[       OK ] �[mLazyOpsTest.TestFull (0 ms)
2022-05-11T16:04:54.1568440Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestFullLike
2022-05-11T16:04:54.1569536Z �[0;32m[       OK ] �[mLazyOpsTest.TestFullLike (0 ms)
2022-05-11T16:04:54.1569928Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestFullLikeOptions
2022-05-11T16:04:54.1570441Z �[0;32m[       OK ] �[mLazyOpsTest.TestFullLikeOptions (0 ms)
2022-05-11T16:04:54.1570744Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestARange
2022-05-11T16:04:54.3084906Z .jenkins/pytorch/test.sh: line 255:  7789 Segmentation fault      (core dumped) "$TORCH_BIN_DIR"/test_lazy --gtest_output=xml:$TEST_REPORTS_DIR/test_lazy.xml
2022-05-11T16:04:54.3085358Z + cleanup
2022-05-11T16:04:54.3085521Z + retcode=139
2022-05-11T16:04:54.3085685Z + set +x
2022-05-11T16:04:54.3118608Z ##[error]Process completed with exit code 139.
2022-05-11T16:04:54.3161309Z ##[group]Run pytorch/pytorch/.github/actions/get-workflow-job-id@master
2022-05-11T16:04:54.3161546Z with:
2022-05-11T16:04:54.3161957Z   github-token: ***
2022-05-11T16:04:54.3162129Z env:
2022-05-11T16:04:54.3162279Z   IN_CI: 1
2022-05-11T16:04:54.3162438Z   IS_GHA: 1

See GitHub Actions build pull / linux-bionic-py3.7-clang9 / test (default, 2, 2, linux.2xlarge) (4/5)

Step: "Test" (full log | diagnosis details | 🔁 rerun) ❄️

2022-05-11T16:05:15.4205848Z .jenkins/pytorch/t...--gtest_output=xml:$TEST_REPORTS_DIR/test_lazy.xml
2022-05-11T16:05:15.1623922Z �[0;32m[       OK ] �[mLazyOpsTest.TestOnesLike (0 ms)
2022-05-11T16:05:15.1624475Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestOnesLikeOptions
2022-05-11T16:05:15.1625112Z �[0;32m[       OK ] �[mLazyOpsTest.TestOnesLikeOptions (0 ms)
2022-05-11T16:05:15.1625453Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestFull
2022-05-11T16:05:15.1629583Z �[0;32m[       OK ] �[mLazyOpsTest.TestFull (0 ms)
2022-05-11T16:05:15.1630120Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestFullLike
2022-05-11T16:05:15.1630750Z �[0;32m[       OK ] �[mLazyOpsTest.TestFullLike (0 ms)
2022-05-11T16:05:15.1631330Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestFullLikeOptions
2022-05-11T16:05:15.1631952Z �[0;32m[       OK ] �[mLazyOpsTest.TestFullLikeOptions (0 ms)
2022-05-11T16:05:15.1632467Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestARange
2022-05-11T16:05:15.4205848Z .jenkins/pytorch/test.sh: line 255:  3934 Segmentation fault      (core dumped) "$TORCH_BIN_DIR"/test_lazy --gtest_output=xml:$TEST_REPORTS_DIR/test_lazy.xml
2022-05-11T16:05:15.4206189Z + cleanup
2022-05-11T16:05:15.4206343Z + retcode=139
2022-05-11T16:05:15.4206527Z + set +x
2022-05-11T16:05:15.4240716Z ##[error]Process completed with exit code 139.
2022-05-11T16:05:15.4287220Z ##[group]Run pytorch/pytorch/.github/actions/get-workflow-job-id@master
2022-05-11T16:05:15.4287458Z with:
2022-05-11T16:05:15.4288137Z   github-token: ***
2022-05-11T16:05:15.4288309Z env:
2022-05-11T16:05:15.4288449Z   IN_CI: 1
2022-05-11T16:05:15.4288611Z   IS_GHA: 1

See GitHub Actions build pull / linux-bionic-py3.7-clang9 / test (crossref, 2, 2, linux.2xlarge) (5/5)

Step: "Test" (full log | diagnosis details | 🔁 rerun) ❄️

2022-05-11T16:14:24.5965682Z .jenkins/pytorch/t...--gtest_output=xml:$TEST_REPORTS_DIR/test_lazy.xml
2022-05-11T16:14:24.3356283Z �[0;32m[       OK ] �[mLazyOpsTest.TestOnesLike (0 ms)
2022-05-11T16:14:24.3357019Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestOnesLikeOptions
2022-05-11T16:14:24.3357712Z �[0;32m[       OK ] �[mLazyOpsTest.TestOnesLikeOptions (0 ms)
2022-05-11T16:14:24.3358017Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestFull
2022-05-11T16:14:24.3362191Z �[0;32m[       OK ] �[mLazyOpsTest.TestFull (0 ms)
2022-05-11T16:14:24.3362573Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestFullLike
2022-05-11T16:14:24.3363068Z �[0;32m[       OK ] �[mLazyOpsTest.TestFullLike (0 ms)
2022-05-11T16:14:24.3363452Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestFullLikeOptions
2022-05-11T16:14:24.3363856Z �[0;32m[       OK ] �[mLazyOpsTest.TestFullLikeOptions (0 ms)
2022-05-11T16:14:24.3364230Z �[0;32m[ RUN      ] �[mLazyOpsTest.TestARange
2022-05-11T16:14:24.5965682Z .jenkins/pytorch/test.sh: line 255:  3849 Segmentation fault      (core dumped) "$TORCH_BIN_DIR"/test_lazy --gtest_output=xml:$TEST_REPORTS_DIR/test_lazy.xml
2022-05-11T16:14:24.5966059Z + cleanup
2022-05-11T16:14:24.5966225Z + retcode=139
2022-05-11T16:14:24.5966437Z + set +x
2022-05-11T16:14:24.6007750Z ##[error]Process completed with exit code 139.
2022-05-11T16:14:24.6076088Z ##[group]Run pytorch/pytorch/.github/actions/get-workflow-job-id@master
2022-05-11T16:14:24.6076329Z with:
2022-05-11T16:14:24.6076740Z   github-token: ***
2022-05-11T16:14:24.6076912Z env:
2022-05-11T16:14:24.6077055Z   IN_CI: 1
2022-05-11T16:14:24.6077214Z   IS_GHA: 1

This comment was automatically generated by Dr. CI (expand for details).

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

"not compatible with input tensor's size and stride (at least one dimension"
" spans across two contiguous subspaces). Use .reshape(...) instead.");
return alias_with_sizes_and_strides(self, inferred_size, *stride);
return self.as_strided(inferred_size, *stride);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole point of unsafe_view is to be faster than doing a proper view that goes through the dispatcher.
So if we do this, we might as well remove unsafe_view altogether.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh haha. Then maybe the CompositeExplicitAutograd label is just false advertising.

Ok, I'm actually going to just remove this PR. I guess we could replace CompositeExplicitAutograd with CPU, CUDA, QuantizedCPU, QuantizedCUDA, etc, but we risk breaking 3rd party backends that happened to be relying on it.

I have another PR later that will add a new alias key for basically "all backends except functional backends", which might be a good candidate for this kernel (since functional backends like XLA/LTC won't like the alias_with_sizes_and_strides call).

@ezyang
Copy link
Contributor

ezyang commented May 10, 2022

I'm wondering what the right thing to do here is. @albanD isn't the goal of _unsafe_view to bypass view metadata setup, not the dispatcher per se? If so we should make this a non-composite operator and just write the autograd function by hand

@albanD
Copy link
Collaborator

albanD commented May 10, 2022

Ho I forgot we added full autograd support for it. It is already going through the dispatcher once I gues (unless it is called via at::native).
But is the metadata update really that expensive compared to a full run through the dispatcher?

On a side note, isn't composite compliance only for the Implicit autograd keys?

@ezyang
Copy link
Contributor

ezyang commented May 10, 2022

But is the metadata update really that expensive compared to a full run through the dispatcher?

Yes? Wasn't this the whole point of inference mode

@bdhirsh
Copy link
Collaborator Author

bdhirsh commented May 10, 2022

isn't composite compliance only for the Implicit autograd keys?

I'm probably overloading the term, yeah 😛. "Ops advertising as CompositeExplicitAutograd that don't actually work for all backends"

bdhirsh added 2 commits May 10, 2022 09:46
`_unsafe_view` is listed as `CompositeExplicitAutograd`, but internally is calls `alias_with_sizes_and_strides` which isn't supported by non-eager backends.




[ghstack-poisoned]
`_unsafe_view` is listed as `CompositeExplicitAutograd`, but internally is calls `alias_with_sizes_and_strides` which isn't supported by non-eager backends.




[ghstack-poisoned]
@github-actions
Copy link
Contributor

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions bot added the Stale label Jul 10, 2022
@github-actions github-actions bot closed this Aug 9, 2022
@facebook-github-bot facebook-github-bot deleted the gh/bdhirsh/225/head branch September 9, 2022 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants